From 273c2f22603abe563435a0f1d7a84c0d9037fe2c Mon Sep 17 00:00:00 2001 From: StefanVukovic99 Date: Sat, 13 Jan 2024 12:41:38 +0100 Subject: add option to disable part of speech rule check (#438) * pos filter wip * add part of speech filter option * add part of speech filter option * remove from deinflector * update test * remove return * tie to dictionary * duplicate to welcome page * delete unused html * fix ts * typo --- types/ext/settings.d.ts | 1 + types/ext/translation.d.ts | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'types') diff --git a/types/ext/settings.d.ts b/types/ext/settings.d.ts index 25ea46d9..b95691b2 100644 --- a/types/ext/settings.d.ts +++ b/types/ext/settings.d.ts @@ -258,6 +258,7 @@ export type DictionaryOptions = { enabled: boolean; allowSecondarySearches: boolean; definitionsCollapsible: DictionaryDefinitionsCollapsible; + partsOfSpeechFilter: boolean; }; export type ParsingOptions = { diff --git a/types/ext/translation.d.ts b/types/ext/translation.d.ts index c8938e00..d597c006 100644 --- a/types/ext/translation.d.ts +++ b/types/ext/translation.d.ts @@ -173,6 +173,10 @@ export type FindTermDictionary = { * Whether or not secondary term searches are allowed for this dictionary. */ allowSecondarySearches: boolean; + /** + * Whether this dictionary's part of speech rules should be used to filter results. + */ + partsOfSpeechFilter: boolean; }; export type TermEnabledDictionaryMap = Map; -- cgit v1.2.3