mirror of https://github.com/apache/lucene.git
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:
parent
77563c2c15
commit
a26ea57ec7
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue