aboutsummaryrefslogtreecommitdiff
path: root/api/word.ts
diff options
context:
space:
mode:
Diffstat (limited to 'api/word.ts')
-rw-r--r--api/word.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/api/word.ts b/api/word.ts
index b7fc3e6..4dad4a3 100644
--- a/api/word.ts
+++ b/api/word.ts
@@ -1,10 +1,10 @@
import Glossary from "./glossary.ts";
import APIBase from "./base.ts";
-import { ParseToken } from "../language/types.ts";
import Japanese, { JapaneseFormatter } from "./japanese.ts";
import "../util/string.ts";
-import { Tag, TagGroup } from "../language/tags.ts";
+import { TagGroup } from "../search/tags.ts";
+import { SearchWord } from "../search/types.ts";
export default class Word extends APIBase {
/** @prop dictionary form of verb if this word is a verb */
@@ -16,7 +16,7 @@ export default class Word extends APIBase {
/** @prop this word represents an unrecognized sentence part between recognized terms */
protected filler: boolean;
- constructor(input: string | ParseToken) {
+ constructor(input: string | SearchWord) {
super();
if (typeof input === "string") {
this.filler = true;
@@ -26,7 +26,7 @@ export default class Word extends APIBase {
this.outputKanji = false;
} else {
this.filler = false;
- input = input as ParseToken;
+ input = input as SearchWord;
this.base = new Japanese(input.writing, input.reading);
if (input.tags.anyOf(TagGroup.Conjugable as string[])) {
var writingCommon = input.writing.cmpLen(input.source);