[ 
https://issues.apache.org/jira/browse/LUCENE-7420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15427888#comment-15427888
 ] 

J Pardos commented on LUCENE-7420:
----------------------------------

The attached patch stems four character words not ending in 's'.

> SpanishLightStemmer stemming errors
> -----------------------------------
>
>                 Key: LUCENE-7420
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7420
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/analysis
>    Affects Versions: 5.x, 6.x
>            Reporter: J Pardos
>            Priority: Minor
>              Labels: analysis, stemming
>         Attachments: SpanishLightStemmer.java.patch
>
>
> SpanishLightStemmer only applies stemming if the original word is 5 
> characters or longer. It tries to removing gender and numbers, removing final 
> vowel and s if they exist.
> So, perro, perra, perros and perras (dog, bitch, dogs and bitches) all become 
> 'perr'.
> The problem arises with shorter words. Gatos and Gatas (cats / female cats) 
> all become 'gat', but the singular forms (gato, gata) are below the 5 
> character threshold, so they wouldn't be stemmed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to