Remove duplicate entries in SpanishPluralStemmer invariants list (#508)

* Remove duplicate entries in SpanishPluralStemmer invariants list
Add assertion to prevent duplicates in the future

Co-authored-by: Xavier Sanchez <xavier.sanchez@wallapop.com>
This commit is contained in:
Misha Tiurin 2021-12-02 20:11:15 +01:00 committed by GitHub
parent 77563c2c15
commit a26ea57ec7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -41,7 +41,6 @@ public class SpanishPluralStemmer {
"albricias",
"aledaños",
"alexis",
"aries",
"alicates",
"analisis",
"andurriales",
@ -119,7 +118,6 @@ public class SpanishPluralStemmer {
"portamantas",
"quinientas",
"quinientos",
"quinientos",
"quitamanchas",
"recogepelotas",
"rictus",
@ -148,7 +146,7 @@ public class SpanishPluralStemmer {
static {
final CharArraySet invariantSet = new CharArraySet(invariantsList, true);
invariants = CharArraySet.unmodifiableSet(invariantSet);
assert invariants.size() == invariantsList.size();
final List<String> specialCasesList =
Arrays.asList(
"yoes",