diff options
author | StefanVukovic99 <stefanvukovic44@gmail.com> | 2024-05-11 01:37:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-10 23:37:09 +0000 |
commit | d68e93e9ca210a3653e3a464391a77b27cfd353a (patch) | |
tree | bb6bbb5fb1d7d2d59d66cb4e01fa5014db9afc0b /ext/js/language/language-descriptors.js | |
parent | fdfbfc27c6b731cbc41b2dd1239e70a549bcc8f4 (diff) |
add a few deinflections for Latin (#901)
* abstract deinflections
* undo redundant changes
* remove cast
* switch to js
* MultiLanguageTransformer
* comments
* comments
* fix test
* suffixInflection
* fix bench
* substring instead of replace
* without heuristic
* suffixMap
* add other language deinflections
* wip
* catch cycles
* fix tests
* uninflect to deinflect
* use less regex
* start
* organize language transform test by language
* simpler folders
* wip
* wip
* delete german test
* cleanup
Diffstat (limited to 'ext/js/language/language-descriptors.js')
-rw-r--r-- | ext/js/language/language-descriptors.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/js/language/language-descriptors.js b/ext/js/language/language-descriptors.js index 1c577039..e1d89054 100644 --- a/ext/js/language/language-descriptors.js +++ b/ext/js/language/language-descriptors.js @@ -22,6 +22,7 @@ import {englishTransforms} from './en/english-transforms.js'; import {collapseEmphaticSequences, convertAlphabeticCharacters, convertHalfWidthCharacters, convertHiraganaToKatakana, convertNumericCharacters} from './ja/japanese-text-preprocessors.js'; import {japaneseTransforms} from './ja/japanese-transforms.js'; import {isStringPartiallyJapanese} from './ja/japanese.js'; +import {latinTransforms} from './la/latin-transforms.js'; import {removeRussianDiacritics, yoToE} from './ru/russian-text-preprocessors.js'; import {oldIrishTransforms} from './sga/old-irish-transforms.js'; import {albanianTransforms} from './sq/albanian-transforms.js'; @@ -125,7 +126,8 @@ const languageDescriptors = [ textPreprocessors: { ...capitalizationPreprocessors, removeAlphabeticDiacritics - } + }, + languageTransforms: latinTransforms }, { iso: 'ja', |