diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-09-13 15:45:53 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-09-13 15:45:53 -0700 |
commit | ba8451f429d1055f91f79473f32204efb2c041db (patch) | |
tree | 0c65981f071cd415f0f9e0911cfd17065203ebef /ext | |
parent | 219eeb6e81aba136af109770974f42b703bdae60 (diff) |
cleanup
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bg/js/translator.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js index 1e79b6fc..a2322e36 100644 --- a/ext/bg/js/translator.js +++ b/ext/bg/js/translator.js @@ -51,10 +51,10 @@ class Translator { const cache = {}; const titles = Object.keys(dictionaries); - let deinflections = await this.findTermsDeinflected(text, titles, cache); + let deinflections = await this.findTermDeinflections(text, titles, cache); const textHiragana = jpKatakanaToHiragana(text); if (text !== textHiragana) { - deinflections = deinflections.concat(await this.findTermsDeinflected(textHiragana, titles, cache)); + deinflections = deinflections.concat(await this.findTermDeinflections(textHiragana, titles, cache)); } let definitions = []; @@ -94,7 +94,7 @@ class Translator { return {length, definitions}; } - async findTermsDeinflected(text, titles, cache) { + async findTermDeinflections(text, titles, cache) { const definer = async term => { if (cache.hasOwnProperty(term)) { return cache[term]; |