Jacob Stevenson The lab

Lab

toki pona translator

Type toki pona to get English and a grammar check by the rules of wasona’s course. It runs in your browser, so nothing you type leaves your device.

Loading the translator…

Try one:

How it works

  1. Words. The text is split into sentences, and each word is looked up in a 181-word dictionary.
  2. Grammar. A grammar finds every reading of the sentence and ranks them.
  3. Checks. The best reading is checked against wasona’s rules, and anything off is explained.
  4. English. The reading is put into English, construct by construct.

The English is literal. toki pona doesn’t mark tense or number, so verbs come out in the present and nouns in the singular unless the sentence says otherwise, and a word’s most common meaning wins over the one its context might want. English to toki pona is still to come.

The parser, checker, and translator are Python, run in your browser by Pyodide. The code is on GitHub. Its sentences, glosses, and rules come from wasona and its dictionary from lipu Linku, both under CC BY-SA 4.0.