Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion synonyms/linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const REPLACEMENT_REGEX = /=>/
* common mistakes with synonyms.
*
* Warnings:
* - Puntuation: Synonyms should not contain characters in the punctuation blacklist
* - Punctuation: Synonyms should not contain characters in the punctuation blacklist
* - Letter Casing: Synonyms should be lowercase
* - Sanity Checks: At least one synonym should exist, duplicates should be removed
* - Multi Word: Multi-word synonyms can generate unexpected token positions
Expand Down
3 changes: 3 additions & 0 deletions synonyms/streets/et.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tänav, tanav, tän, tn
maantee, mnt
puiestee, pst
3 changes: 3 additions & 0 deletions test/fixtures/expected-icu-tokenizer.json
Original file line number Diff line number Diff line change
Expand Up @@ -1951,6 +1951,9 @@
"vereda,vreda,ver",
"viaducto,vcto,vd",
"vista,vst,vsta,vist",
"tänav,tanav,tän,tn",
"maantee,mnt",
"puiestee,pst",
"allée,allee,all",
"allées,alls,allees",
"arcade,arc",
Expand Down
5 changes: 4 additions & 1 deletion test/fixtures/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -1933,6 +1933,9 @@
"vereda,vreda,ver",
"viaducto,vcto,vd",
"vista,vst,vsta,vist",
"tänav,tanav,tän,tn",
"maantee,mnt",
"puiestee,pst",
"allée,allee,all",
"allées,alls,allees",
"arcade,arc",
Expand Down Expand Up @@ -3025,4 +3028,4 @@
},
"dynamic": "strict"
}
}
}
2 changes: 1 addition & 1 deletion test/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ module.exports.tests.streetSynonymFilter = function(test, common) {
var filter = s.analysis.filter['synonyms/streets'];
t.equal(filter.type, 'synonym');
t.true(Array.isArray(filter.synonyms));
t.equal(filter.synonyms.length, 809);
t.equal(filter.synonyms.length, 812);
t.end();
});
};
Expand Down