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, builds the dictionary, and builds ./dist/main.js
as a minified file ready for production use. If you made changes to the dictionary, you'll need to run this again.
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 nor builds the dictionary.
This builds ./dist/main.js
as a non-minified file with source mapping, intended for testing and debugging. This command also watches the source codes in ./src/
path and rebuilds ./dist/main.js
whenever there are changes.
deno task watch
To stop this command, simply press Ctrl + C.
After building or watching, you can directly run ./dist/index.js
using your favorite browser.