diff options
author | StefanVukovic99 <stefanvukovic44@gmail.com> | 2024-04-20 15:57:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-20 13:57:34 +0000 |
commit | 94c0b943e84504629109d4852f4a080c6b0e569e (patch) | |
tree | 6629d07843ecc4efc8c003f760e5a1f54ab791ae | |
parent | d34feb333846e3167b57c4125658603fe7a4f3a9 (diff) |
start using german deinflections (#848)24.4.20.0
* use german transforms
* fix test
-rw-r--r-- | .eslintrc.json | 1 | ||||
-rw-r--r-- | ext/js/language/language-descriptors.js | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/.eslintrc.json b/.eslintrc.json index ab49e471..8b08e827 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -642,6 +642,7 @@ "ext/js/general/text-source-map.js", "ext/js/language/ar/arabic-text-preprocessors.js", "ext/js/language/de/german-text-preprocessors.js", + "ext/js/language/de/german-transforms.js", "ext/js/language/en/english-transforms.js", "ext/js/language/ja/japanese-text-preprocessors.js", "ext/js/language/ja/japanese-transforms.js", diff --git a/ext/js/language/language-descriptors.js b/ext/js/language/language-descriptors.js index 2bdc7c7c..c5c3e01e 100644 --- a/ext/js/language/language-descriptors.js +++ b/ext/js/language/language-descriptors.js @@ -17,13 +17,14 @@ import {removeArabicScriptDiacritics} from './ar/arabic-text-preprocessors.js'; import {eszettPreprocessor} from './de/german-text-preprocessors.js'; +import {germanTransforms} from './de/german-transforms.js'; 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 {removeRussianDiacritics, yoToE} from './ru/russian-text-preprocessors.js'; -import {albanianTransforms} from './sq/albanian-transforms.js'; import {oldIrishTransforms} from './sga/old-irish-transforms.js'; +import {albanianTransforms} from './sq/albanian-transforms.js'; import {capitalizeFirstLetter, decapitalize, removeAlphabeticDiacritics} from './text-preprocessors.js'; const capitalizationPreprocessors = { @@ -48,7 +49,8 @@ const languageDescriptors = [ textPreprocessors: { ...capitalizationPreprocessors, eszettPreprocessor - } + }, + languageTransforms: germanTransforms }, { iso: 'el', |