From 3e419aa562aab03ca20421aaf7e4d1a39194a5b4 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Wed, 31 Jan 2024 08:28:05 -0500 Subject: Language transformer (#582) * Set up new deinflection data file * Define types * Test * Add internal types * Set up loading for transforms * Add getPartOfSpeechFlags * Convert static methods * Add note * Add transform function * Update trace structure * Add a language tag to the language transform descriptor * Add clear function * Add function for multiple parts of speech * Clarify naming * Add getConditionFlagsFromConditionType * Add plural function * Replace usages of Deinflector * Update tests * Update config * Remove old * Rename * Rename files --- dev/jsconfig.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dev') diff --git a/dev/jsconfig.json b/dev/jsconfig.json index c0ff07d0..db38b6df 100644 --- a/dev/jsconfig.json +++ b/dev/jsconfig.json @@ -18,7 +18,6 @@ "core": ["../types/ext/core"], "css-style-applier": ["../types/ext/css-style-applier"], "database": ["../types/ext/database"], - "deinflector": ["../types/ext/deinflector"], "dictionary": ["../types/ext/dictionary"], "dictionary-data": ["../types/ext/dictionary-data"], "dictionary-data-util": ["../types/ext/dictionary-data-util"], @@ -30,6 +29,8 @@ "event-listener-collection": ["../types/ext/event-listener-collection"], "japanese-util": ["../types/ext/japanese-util"], "ext/json-schema": ["../types/ext/json-schema"], + "language-transformer": ["../types/ext/language-transformer"], + "language-transformer-internal": ["../types/ext/language-transformer-internal"], "log": ["../types/ext/log"], "settings": ["../types/ext/settings"], "structured-content": ["../types/ext/structured-content"], @@ -64,7 +65,7 @@ "../ext/js/general/cache-map.js", "../ext/js/general/regex-util.js", "../ext/js/general/text-source-map.js", - "../ext/js/language/deinflector.js", + "../ext/js/language/language-transformer.js", "../ext/js/dictionary/dictionary-importer.js", "../ext/js/dictionary/dictionary-database.js", "../ext/js/dictionary/dictionary-data-util.js", -- cgit v1.2.3