[jira] [Commented] (TEXT-77) Add code to check if a given string is a palindrome
[ https://issues.apache.org/jira/browse/TEXT-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16058379#comment-16058379 ] Bruno P. Kinoshita commented on TEXT-77: +1 for closing for now. We can revisit it later if we have better use cases :-) At Apache, I believe the only place with anything related right now would be [OODT streaming module|https://github.com/apache/oodt/blob/1ae92425ec3e7e0d0f026cbcc142ab17988cd071/streaming/resource/src/main/java/org/apache/oodt/cas/resource/examples/PalindromeUtils.java], and it is used just as part of an example. > Add code to check if a given string is a palindrome > --- > > Key: TEXT-77 > URL: https://issues.apache.org/jira/browse/TEXT-77 > Project: Commons Text > Issue Type: New Feature >Reporter: Bruno P. Kinoshita >Priority: Minor > Labels: easy, help-wanted, text > Fix For: 1.x > > > I had a look at > [lang|https://commons.apache.org/proper/commons-lang/javadocs/api-release/index.html] > and > [text|https://commons.apache.org/proper/commons-text/javadocs/api-release/index.html] > API's, but could not locate a class/method for > [palindromes|https://en.wikipedia.org/wiki/Palindrome]. > Ideally, it would support words or sentences such as "racecar" and "step on > no pets". -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (TEXT-77) Add code to check if a given string is a palindrome
[ https://issues.apache.org/jira/browse/TEXT-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026594#comment-16026594 ] Amey Jadiye commented on TEXT-77: - I think StringUtils would be better place for this method, good to have method in toolbox, in future another wrapper on top of this method can create specific and more complex usage of palindrome. > Add code to check if a given string is a palindrome > --- > > Key: TEXT-77 > URL: https://issues.apache.org/jira/browse/TEXT-77 > Project: Commons Text > Issue Type: New Feature >Reporter: Bruno P. Kinoshita >Priority: Minor > Labels: easy, help-wanted, text > Fix For: 1.x > > > I had a look at > [lang|https://commons.apache.org/proper/commons-lang/javadocs/api-release/index.html] > and > [text|https://commons.apache.org/proper/commons-text/javadocs/api-release/index.html] > API's, but could not locate a class/method for > [palindromes|https://en.wikipedia.org/wiki/Palindrome]. > Ideally, it would support words or sentences such as "racecar" and "step on > no pets". -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (TEXT-77) Add code to check if a given string is a palindrome
[ https://issues.apache.org/jira/browse/TEXT-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15970535#comment-15970535 ] Bruno P. Kinoshita commented on TEXT-77: >What is the use case for this? It could be used for [text compression|http://www.sciencedirect.com/science/article/pii/S0304397508008852]. However, I suspect it would have to be implemented as the [longest common sequence|https://github.com/apache/commons-text/tree/master/src/main/java/org/apache/commons/text] similarity that we have (i.e. for any given substring, find all its possible palindrome values in the string). Palindromes and longest common subsequence have use cases in bioinformatics; though I don't intend to quickly implement anything (which I agree would be pretty trivial). Instead will read a few papers to confirm that it would be useful for other components in ASF (in mind I have only [Taverna|https://taverna.incubator.apache.org/introduction/taverna-in-use/bioinformatics] so far) as well as external projects. Happy to close and archive the issue later if not helpful to any other projects. > Add code to check if a given string is a palindrome > --- > > Key: TEXT-77 > URL: https://issues.apache.org/jira/browse/TEXT-77 > Project: Commons Text > Issue Type: New Feature >Reporter: Bruno P. Kinoshita >Priority: Minor > Labels: easy, help-wanted, text > > I had a look at > [lang|https://commons.apache.org/proper/commons-lang/javadocs/api-release/index.html] > and > [text|https://commons.apache.org/proper/commons-text/javadocs/api-release/index.html] > API's, but could not locate a class/method for > [palindromes|https://en.wikipedia.org/wiki/Palindrome]. > Ideally, it would support words or sentences such as "racecar" and "step on > no pets". -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (TEXT-77) Add code to check if a given string is a palindrome
[ https://issues.apache.org/jira/browse/TEXT-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15970490#comment-15970490 ] Sebb commented on TEXT-77: -- What is the use case for this? Although it should be pretty trivial to implement, I'm not sure it belongs in Commons. > Add code to check if a given string is a palindrome > --- > > Key: TEXT-77 > URL: https://issues.apache.org/jira/browse/TEXT-77 > Project: Commons Text > Issue Type: New Feature >Reporter: Bruno P. Kinoshita >Priority: Minor > Labels: easy, help-wanted, text > > I had a look at > [lang|https://commons.apache.org/proper/commons-lang/javadocs/api-release/index.html] > and > [text|https://commons.apache.org/proper/commons-text/javadocs/api-release/index.html] > API's, but could not locate a class/method for > [palindromes|https://en.wikipedia.org/wiki/Palindrome]. > Ideally, it would support words or sentences such as "racecar" and "step on > no pets". -- This message was sent by Atlassian JIRA (v6.3.15#6346)