Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EDE6A200C58 for ; Sun, 16 Apr 2017 23:46:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E45A3160B9A; Sun, 16 Apr 2017 21:46:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 36620160B80 for ; Sun, 16 Apr 2017 23:46:45 +0200 (CEST) Received: (qmail 57199 invoked by uid 500); 16 Apr 2017 21:46:44 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 57187 invoked by uid 99); 16 Apr 2017 21:46:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Apr 2017 21:46:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C755B18033C for ; Sun, 16 Apr 2017 21:46:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id GBEYHi2_LN3j for ; Sun, 16 Apr 2017 21:46:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 577985F1E7 for ; Sun, 16 Apr 2017 21:46:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CFAE6E05B1 for ; Sun, 16 Apr 2017 21:46:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 83A6620D59 for ; Sun, 16 Apr 2017 21:46:41 +0000 (UTC) Date: Sun, 16 Apr 2017 21:46:41 +0000 (UTC) From: "Bruno P. Kinoshita (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TEXT-77) Add code to check if a given string is a palindrome MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 16 Apr 2017 21:46:46 -0000 [ https://issues.apache.org/jira/browse/TEXT-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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)