diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-04-04 16:22:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-04 16:22:35 -0400 |
commit | e14b52ef84be7feeab60167605fd10918a242cd3 (patch) | |
tree | b9b124d9ed77806a7ad8b52c6e779da0f4844993 /ext/js/comm/mecab.js | |
parent | b8bedd5185869edb33a7657fff323f812444eed0 (diff) |
Update dictionary entry terminology (#1592)
* Update terminology
* Update terminology in display.js
* Update terminology in display-audio.js
* Update terminology in text-scanner.js
* Update terminology in backend.js
* Update terminology in mecab.js
* Update terminology in audio-downloader.js
* Update terminology in translator-vm.js
* Update terminology in dictionary-data-util.js
* Update terminology in dictionary-database.js
* Update terminology in japanese-util.js
* Change/upgrade {expression} to {term}
* Update terminology in test-japanese.js
* Update terminology in test-database.js
* Update terminology in anki-templates-controller.js
* Update terminology in anki-note-builder.js
* Update terminology in backend.js
* Update terminology in text-scanner.js
* Update terminology in display.js
* Update terminology in display.js
Diffstat (limited to 'ext/js/comm/mecab.js')
-rw-r--r-- | ext/js/comm/mecab.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/comm/mecab.js b/ext/js/comm/mecab.js index 4eff2927..9a706391 100644 --- a/ext/js/comm/mecab.js +++ b/ext/js/comm/mecab.js @@ -108,7 +108,7 @@ class Mecab { * { * name: (string), * lines: [ - * {expression: (string), reading: (string), source: (string)}, + * {term: (string), reading: (string), source: (string)}, * ... * ] * }, @@ -172,11 +172,11 @@ class Mecab { const lines = []; for (const rawLine of rawLines) { const line = []; - for (let {expression, reading, source} of rawLine) { - if (typeof expression !== 'string') { expression = ''; } + for (let {expression: term, reading, source} of rawLine) { + if (typeof term !== 'string') { term = ''; } if (typeof reading !== 'string') { reading = ''; } if (typeof source !== 'string') { source = ''; } - line.push({expression, reading, source}); + line.push({term, reading, source}); } lines.push(line); } |