aboutsummaryrefslogtreecommitdiff
path: root/examples/sentence-word-lookup.ts
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sentence-word-lookup.ts')
-rw-r--r--examples/sentence-word-lookup.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sentence-word-lookup.ts b/examples/sentence-word-lookup.ts
index ff82853..6fd57bd 100644
--- a/examples/sentence-word-lookup.ts
+++ b/examples/sentence-word-lookup.ts
@@ -1,5 +1,6 @@
import Yomikun from "../api/yomikun.ts";
import DirectCoreClient from "../core/direct/client.ts";
+// import "../util/string.ts";
// Create a direct (local) API instance
var api = new Yomikun(new DirectCoreClient());
@@ -11,7 +12,6 @@ var api = new Yomikun(new DirectCoreClient());
// fetched by the user. Each subclass instantiated from an API instance keeps a
// reference to that API instance for fetching additional data.
var sentence = await api.sentence("この紅茶は甘すぎる");
-console.log(await sentence.test());
// Pick the word 紅茶 from the sentence in some different ways:
var word = sentence.words.find(w => w.writing == "紅茶"); // filter terms by writing (matches first only)