summaryrefslogtreecommitdiff
path: root/ext/bg/js/translator.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r--ext/bg/js/translator.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index 8710f568..d88aa536 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -41,11 +41,11 @@ class Translator {
});
}
- findTerm(text, dictionaries, enableSoftKatakanaSearch) {
+ findTerm(text, dictionaries, softKatakana) {
const cache = {};
return this.findTermDeinflections(text, dictionaries, cache).then(deinfLiteral => {
const textHiragana = wanakana._katakanaToHiragana(text);
- if (text !== textHiragana && enableSoftKatakanaSearch) {
+ if (text !== textHiragana && softKatakana) {
return this.findTermDeinflections(textHiragana, dictionaries, cache).then(deinfHiragana => deinfLiteral.concat(deinfHiragana));
} else {
return deinfLiteral;
@@ -82,8 +82,8 @@ class Translator {
});
}
- findTermGrouped(text, dictionaries, enableSoftKatakanaSearch) {
- return this.findTerm(text, dictionaries, enableSoftKatakanaSearch).then(({length, definitions}) => {
+ findTermGrouped(text, dictionaries, softKatakana) {
+ return this.findTerm(text, dictionaries, softKatakana).then(({length, definitions}) => {
return {length, definitions: groupTermDefs(definitions)};
});
}