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 --- test/data/translator-test-inputs.json | 3 ++- test/options-util.test.js | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/data/translator-test-inputs.json b/test/data/translator-test-inputs.json index ec7f1a11..91cf0ab2 100644 --- a/test/data/translator-test-inputs.json +++ b/test/data/translator-test-inputs.json @@ -34,7 +34,8 @@ { "index": 0, "priority": 0, - "allowSecondarySearches": false + "allowSecondarySearches": false, + "partsOfSpeechFilter": true } ] ] diff --git a/test/options-util.test.js b/test/options-util.test.js index daffe886..41743b9f 100644 --- a/test/options-util.test.js +++ b/test/options-util.test.js @@ -425,7 +425,8 @@ function createProfileOptionsUpdatedTestData1() { priority: 0, enabled: true, allowSecondarySearches: false, - definitionsCollapsible: 'not-collapsible' + definitionsCollapsible: 'not-collapsible', + partsOfSpeechFilter: true } ], parsing: { @@ -602,7 +603,7 @@ function createOptionsUpdatedTestData1() { } ], profileCurrent: 0, - version: 22, + version: 23, global: { database: { prefixWildcardsSupported: false -- cgit v1.2.3