Repository navigation
Conversation
- Step 1 now takes the longest suffix first and only then checks its region, so giocatrici keeps 'ic' when 'atrici' is outside R2. - Mark i/u between accented vowels too (gioià, sdraiò). - Lowercase the U marker in words shorter than 3 letters (qu).
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #829
PorterStemmerItnow gives the same stem as Snowball for all 37,426 words in snowball-dataitalian/voc.txt(12 differed before, checked againstsnowballstemmer2.2.0).Changes in
lib/natural/stemmers/porter_stemmer_it.js:giocatricilostici(giocatrinstead ofgiocatric). Theamente,ità,ivo/ivaandazionefollow-up removals (iv,at,ic,abil,os) are done as Snowball does them.i/ubetween vowels is also marked when a vowel is accented (gioià→gioi,sdraiò→sdrai). A lookahead lets a vowel close one match and open the next.quno longer comes back asqU.Tests: new cases in
spec/porter_stemmer_it_spec.tsfail on master (6 expectations) and pass now. Full suite: 901 specs, 0 failures.standardis clean on the changed file.