aboutsummaryrefslogtreecommitdiff
path: root/api/yomikun.ts
diff options
context:
space:
mode:
Diffstat (limited to 'api/yomikun.ts')
-rw-r--r--api/yomikun.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/api/yomikun.ts b/api/yomikun.ts
new file mode 100644
index 0000000..4971567
--- /dev/null
+++ b/api/yomikun.ts
@@ -0,0 +1,16 @@
+import Core from "../core/api.ts";
+import RemoteCoreClient from "../core/http/client.ts";
+import Sentence from "./sentence.ts";
+
+export default class Yomikun {
+ protected core: Core;
+
+ constructor(core?: Core) {
+ this.core = core ?? new RemoteCoreClient();
+ }
+
+ async sentence(input: string): Promise<Sentence> {
+ return new Sentence().withParent(this);
+ }
+}
+