aboutsummaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
authorStefanVukovic99 <stefanvukovic44@gmail.com>2024-01-13 12:41:38 +0100
committerGitHub <noreply@github.com>2024-01-13 11:41:38 +0000
commit273c2f22603abe563435a0f1d7a84c0d9037fe2c (patch)
tree0fe7600db81217379fa6e06d38945f10b7aec58a /types
parent2aea9291d66fd619c484abc2ab04b4350807f308 (diff)
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
Diffstat (limited to 'types')
-rw-r--r--types/ext/settings.d.ts1
-rw-r--r--types/ext/translation.d.ts4
2 files changed, 5 insertions, 0 deletions
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<string, FindTermDictionary>;