Toki Pona is a constructed, minimal language. This parser based on swi-prolog and definite clause grammars (dcg) and supports spelling, grammar check and ambiguity check of Toki Pona sentences.
GNU General Public License v3.0
49
stars
5
forks
source link
quotation marks for original names and sentences (quotes). #3
jan Epawan Linkan li tan ma Mewika.
sitelen tawa "Fahrenheit 9/11" li pona tawa mi. % unofficial words with """.
sitelen tawa "Bowling for Columbine" li pona kin.
jan Kolonpo li toki e ni: "mi wile ala tawa lon poka pi ma Apika." % sentences with """.
jan Kolonpo li tawa jan lawa pi ma Potuke li toki e ni: "mi ken tawa ma Asija kepeken nasin ante."
jan Isa li tawa lili, li kama anpa, li toki e ni tawa sewi: "mama mi o! ken la o weka e pilin ike mi. wile mi o lon ala. taso wile sina o lon."
jan lawa li wile sona e ni tan jan Isa:
"jan sona pona o!
mi pali e seme, la mi kama lon tenpo sewi?"
jan Isa li toki e ni:
"tan seme la sina pana e nimi pona tawa mi?
jan ala li pona.
sewi wan taso li pona."
examples
jan Epawan Linkan li tan ma Mewika.
sitelen tawa "Fahrenheit 9/11" li pona tawa mi. % unofficial words with """. sitelen tawa "Bowling for Columbine" li pona kin. jan Kolonpo li toki e ni: "mi wile ala tawa lon poka pi ma Apika." % sentences with """. jan Kolonpo li tawa jan lawa pi ma Potuke li toki e ni: "mi ken tawa ma Asija kepeken nasin ante." jan Isa li tawa lili, li kama anpa, li toki e ni tawa sewi: "mama mi o! ken la o weka e pilin ike mi. wile mi o lon ala. taso wile sina o lon."
jan lawa li wile sona e ni tan jan Isa: "jan sona pona o! mi pali e seme, la mi kama lon tenpo sewi?"
jan Isa li toki e ni: "tan seme la sina pana e nimi pona tawa mi? jan ala li pona. sewi wan taso li pona."