aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language
diff options
context:
space:
mode:
authorCashew <52880648+Scrub1492@users.noreply.github.com>2023-12-29 10:31:45 +0700
committerGitHub <noreply@github.com>2023-12-29 03:31:45 +0000
commitd90d408279938d389019a8bed15c5eb95af7c8bc (patch)
tree0c81f456e3aaf853528c51b0d85ae54fcde05412 /ext/js/language
parentc13ee62b84693346e28741d7f016c6700a2c27d4 (diff)
Comment updates (#481)
* comment updates * comment updates
Diffstat (limited to 'ext/js/language')
-rw-r--r--ext/js/language/deinflector.js2
-rw-r--r--ext/js/language/sandbox/japanese-util.js6
2 files changed, 5 insertions, 3 deletions
diff --git a/ext/js/language/deinflector.js b/ext/js/language/deinflector.js
index f0e02f6f..d2d92e53 100644
--- a/ext/js/language/deinflector.js
+++ b/ext/js/language/deinflector.js
@@ -50,7 +50,7 @@ export class Deinflector {
* @example
* const deinflector = new Deinflector(deinflectionReasons);
* // [{ term: '食べた', rules: 0, reasons: [] }, { term: '食べる', rules: 1, reasons: ['past'] }, { term: '食ぶ', rules: 2, reasons: ['potential', 'past'] }]
- * console.log(deinflector.deinflect('食べさせられる'));
+ * console.log(deinflector.deinflect('食べた'));
*/
deinflect(source) {
const results = [this._createDeinflection(source, 0, [])];
diff --git a/ext/js/language/sandbox/japanese-util.js b/ext/js/language/sandbox/japanese-util.js
index 7d9413a6..f5fc1c86 100644
--- a/ext/js/language/sandbox/japanese-util.js
+++ b/ext/js/language/sandbox/japanese-util.js
@@ -66,8 +66,10 @@ const CJK_IDEOGRAPH_RANGES = [
CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT_RANGE
];
-// Japanese character ranges, roughly ordered in order of expected frequency
-/** @type {import('japanese-util').CodepointRange[]} */
+/**
+ * Japanese character ranges, roughly ordered in order of expected frequency.
+ * @type {import('japanese-util').CodepointRange[]}
+ */
const JAPANESE_RANGES = [
HIRAGANA_RANGE,
KATAKANA_RANGE,