summaryrefslogtreecommitdiff
path: root/ext/js/comm/api.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-07-09 16:05:57 -0400
committerGitHub <noreply@github.com>2021-07-09 16:05:57 -0400
commit24ec22b2e1095a18d2031f697f4aaffb5a0c0609 (patch)
treee5ec013cd2123fe0a01e0b6148c77f18e84469c6 /ext/js/comm/api.js
parent315dc425e489dc96c2f2d4e13b500105d724ec52 (diff)
Text parse updates (#1811)
* Expose more settings to QueryParser * Rename textParse to parseText * Refactor * Convert reading inside QueryParser rather than Backend * Remove use of readingMode from backend * Rename * Update parseText args * Simplify * Update results * Move use of optionsContext * Run mecab and internal parser in parallel * Added "dictionary-reading" reading mode * Update romaji conversion case
Diffstat (limited to 'ext/js/comm/api.js')
-rw-r--r--ext/js/comm/api.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/comm/api.js b/ext/js/comm/api.js
index 7c89f0c5..3ac1d3f7 100644
--- a/ext/js/comm/api.js
+++ b/ext/js/comm/api.js
@@ -32,8 +32,8 @@ class API {
return this._invoke('termsFind', {text, details, optionsContext});
}
- textParse(text, optionsContext) {
- return this._invoke('textParse', {text, optionsContext});
+ parseText(text, optionsContext, scanLength, useInternalParser, useMecabParser) {
+ return this._invoke('parseText', {text, optionsContext, scanLength, useInternalParser, useMecabParser});
}
kanjiFind(text, optionsContext) {