Skip to content

Commit

Permalink
add part of speech filter option
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 committed Dec 24, 2023
1 parent c8b8c6e commit 4105bed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions ext/js/background/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -2457,7 +2457,7 @@ export class Backend {
excludeDictionaryDefinitions = new Set();
excludeDictionaryDefinitions.add(mainDictionary);
}
const findTermsOptions = {
return {
matchType,
deinflect,
mainDictionary,
Expand All @@ -2475,10 +2475,6 @@ export class Backend {
excludeDictionaryDefinitions,
partsOfSpeechFilter
};

console.log('findTermsOptions', findTermsOptions);

return findTermsOptions;
}

/**
Expand Down
1 change: 0 additions & 1 deletion ext/js/language/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export class Translator {
* @returns {Promise<{dictionaryEntries: import('dictionary').TermDictionaryEntry[], originalTextLength: number}>} An object containing dictionary entries and the length of the original source text.
*/
async findTerms(mode, text, options) {
console.log('findTerms', mode, text, options);
const {enabledDictionaryMap, excludeDictionaryDefinitions, sortFrequencyDictionary, sortFrequencyDictionaryOrder} = options;
const tagAggregator = new TranslatorTagAggregator();
let {dictionaryEntries, originalTextLength} = await this._findTermsInternalWrapper(text, enabledDictionaryMap, options, tagAggregator);
Expand Down

0 comments on commit 4105bed

Please sign in to comment.