simplify to enable constant usage
This commit is contained in:
parent
3fa8b8e186
commit
619df42aed
@ -349,11 +349,10 @@ class Backend {
|
|||||||
for (const [mecabName, parsedLines] of Object.entries(rawResults)) {
|
for (const [mecabName, parsedLines] of Object.entries(rawResults)) {
|
||||||
const result = [];
|
const result = [];
|
||||||
for (const parsedLine of parsedLines) {
|
for (const parsedLine of parsedLines) {
|
||||||
for (let {expression, reading, source} of parsedLine) {
|
for (const {expression, reading, source} of parsedLine) {
|
||||||
const term = [];
|
const term = [];
|
||||||
if (expression === '') { expression = source; }
|
|
||||||
for (const {text: text2, furigana} of jp.distributeFuriganaInflected(
|
for (const {text: text2, furigana} of jp.distributeFuriganaInflected(
|
||||||
expression,
|
expression.length > 0 ? expression : source,
|
||||||
jp.convertKatakanaToHiragana(reading),
|
jp.convertKatakanaToHiragana(reading),
|
||||||
source
|
source
|
||||||
)) {
|
)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user