A rule-based dictionary-based Toki Pona to English translator that translates into multiple English outputs showing many possible grammatical and semantic interpretation of the text. No machine learning involved.
It is work in progress! We welcome contributors however!
You'll need the following in order to run commands:
This fetches more dependencies needed, brings the dictionary to the code, and builds ./dist/main.js
.
deno task build
Before running this command, you'll need to run deno task build
first. This is because deno task watch
doesn't fetch dependencies. You only need to run it once.
deno task watch
This builds ./dist/main.js
. This command also watches the codes in ./src/
as well as the dictionary and rebuilds ./dist/main.js
whenever there are changes. To stop this command, simply press Ctrl + C.
After building or watching, you can directly run ./dist/index.html
with your browser to test ilo Token. If you wish to start a local server, run deno task start
. The stdout will tell you the URL to use.
Before running this command, you'll need to run deno task build
first to fetch dependencies and to ensure the dictionary is within the code. You only need to run it once unless you made changes to the dictionary.
deno task run
This will run a REPL that you can use to test ilo Token. To stop this command, simply press Ctrl + C.