Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 76FB1C8C9 for ; Mon, 7 May 2012 11:02:10 +0000 (UTC) Received: (qmail 8868 invoked by uid 500); 7 May 2012 11:02:09 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 8816 invoked by uid 500); 7 May 2012 11:02:09 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 8808 invoked by uid 99); 7 May 2012 11:02:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2012 11:02:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2012 11:02:08 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 56506437610 for ; Mon, 7 May 2012 11:01:48 +0000 (UTC) Date: Mon, 7 May 2012 11:01:48 +0000 (UTC) From: "Luca Cavanna (JIRA)" To: dev@lucene.apache.org Message-ID: <109559591.33813.1336388508355.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <750183298.9592.1335275736111.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (LUCENE-4019) Parsing Hunspell affix rules without regexp condition MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-4019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Luca Cavanna updated LUCENE-4019: --------------------------------- Attachment: LUCENE-4019.patch Small patch: affix rules with less than 5 elements are now ignored. I added a specific test with a new affix file containing an example of rule shorter than it should be. Let me know if you prefer to add a warning when a rule is skipped. Hunspell does that only with a specific command line option. > Parsing Hunspell affix rules without regexp condition > ----------------------------------------------------- > > Key: LUCENE-4019 > URL: https://issues.apache.org/jira/browse/LUCENE-4019 > Project: Lucene - Java > Issue Type: Improvement > Components: modules/analysis > Affects Versions: 3.6 > Reporter: Luca Cavanna > Attachments: LUCENE-4019.patch > > > We found out that some recent Dutch hunspell dictionaries contain suffix or prefix rules like the following: > {code} > SFX Na N 1 > SFX Na 0 ste > {code} > The rule on the second line doesn't contain the 5th parameter, which should be the condition (a regexp usually). You can usually see a '.' as condition, meaning always (for every character). As explained in LUCENE-3976 the readAffix method throws error. I wonder if we should treat the missing value as a kind of default value, like '.'. On the other hand I haven't found any information about this within the spec. Any thoughts? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org