From 94c0b943e84504629109d4852f4a080c6b0e569e Mon Sep 17 00:00:00 2001 From: StefanVukovic99 Date: Sat, 20 Apr 2024 15:57:34 +0200 Subject: start using german deinflections (#848) * use german transforms * fix test --- ext/js/language/language-descriptors.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ext/js/language') 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', -- cgit v1.2.3