A Tool for Spelling, Grammar Check and Ambiguity Check of Toki Pona Sentences

Discuss any other topic in here.
Diskutu ĉiujn aliajn temojn ĉi tie.
Post Reply
User avatar
jan_Lope
Posts: 294
Joined: Sat Apr 06, 2013 1:30 pm
Location: mi lon ma tomo Pelin.
Contact:

A Tool for Spelling, Grammar Check and Ambiguity Check of Toki Pona Sentences

Post by jan_Lope »

Spelling, Grammar Check and Ambiguity Check of Toki Pona Sentences

Please see here:
http://rowa.giso.de/languages/toki-pona ... sson18.php
pona!
jan Lope
https://jan-lope.github.io
(Lessons and the Toki Pona Parser - A tool for spelling, grammar check and ambiguity check of Toki Pona)

On my foe list are the sockpuppets janKipo and janSilipu because of permanent spamming.
janKipo
Posts: 3064
Joined: Fri Oct 09, 2009 2:20 pm

Re: A Tool for Spelling, Grammar Check and Ambiguity Check of Toki Pona Sentences

Post by janKipo »

At a glance, the grammar is very restricted, i.e., many acceptable sentences will be declared ungrammatical or be given unreasonable parsings. On the other hand, just about everything accepted will be acceptable. The ambiguity lists will also generally work for accepted sentences. Details will take some time to work out exactly.
User avatar
jan_Lope
Posts: 294
Joined: Sat Apr 06, 2013 1:30 pm
Location: mi lon ma tomo Pelin.
Contact:

Re: A Tool for Spelling, Grammar Check and Ambiguity Check of Toki Pona Sentences

Post by jan_Lope »

Now it is possible to check several Toki Pona sentences with one command.

http://rowa.giso.de/languages/toki-pona ... sson18.php
pona!
jan Lope
https://jan-lope.github.io
(Lessons and the Toki Pona Parser - A tool for spelling, grammar check and ambiguity check of Toki Pona)

On my foe list are the sockpuppets janKipo and janSilipu because of permanent spamming.
User avatar
jan_Lope
Posts: 294
Joined: Sat Apr 06, 2013 1:30 pm
Location: mi lon ma tomo Pelin.
Contact:

Re: A Tool for Spelling, Grammar Check and Ambiguity Check of Toki Pona Sentences

Post by jan_Lope »

toki!

Tool for checking Toki Pona sentences
Update: Easier handling https://github.com/jan-Lope/Toki_Pona-Parser

Thanks to jan Jon.
pona!
jan Lope
https://jan-lope.github.io
(Lessons and the Toki Pona Parser - A tool for spelling, grammar check and ambiguity check of Toki Pona)

On my foe list are the sockpuppets janKipo and janSilipu because of permanent spamming.
User avatar
jan_Lope
Posts: 294
Joined: Sat Apr 06, 2013 1:30 pm
Location: mi lon ma tomo Pelin.
Contact:

Re: A Tool for Spelling, Grammar Check and Ambiguity Check of Toki Pona Sentences

Post by jan_Lope »

toki!
An update for the Toki Pona parser is available:
https://jan-lope.github.io/Toki_Pona-Parser/

Missing or wrong grammar rules are fixed.

Test rules for positiv tests of correct examples and negativ tests of wrong examples are implemented.
Thanks to jan Jon. He wrote the test rules.

Correct examples:
https://github.com/jan-Lope/Toki_Pona-P ... -right.txt
Wrong examples:
https://github.com/jan-Lope/Toki_Pona-P ... -wrong.txt

The travis build process checks these examples automatically https://travis-ci.org/jan-Lope/Toki_Pona-Parser
pona!
jan Lope
https://jan-lope.github.io
(Lessons and the Toki Pona Parser - A tool for spelling, grammar check and ambiguity check of Toki Pona)

On my foe list are the sockpuppets janKipo and janSilipu because of permanent spamming.
User avatar
jan_Lope
Posts: 294
Joined: Sat Apr 06, 2013 1:30 pm
Location: mi lon ma tomo Pelin.
Contact:

Re: A Tool for Spelling, Grammar Check and Ambiguity Check of Toki Pona Sentences

Post by jan_Lope »

toki!

A better installation docu for the Toki Pona parser https://jan-lope.github.io/Toki_Pona-Parser/
pona!
jan Lope
https://jan-lope.github.io
(Lessons and the Toki Pona Parser - A tool for spelling, grammar check and ambiguity check of Toki Pona)

On my foe list are the sockpuppets janKipo and janSilipu because of permanent spamming.
janKipo
Posts: 3064
Joined: Fri Oct 09, 2009 2:20 pm

Re: A Tool for Spelling, Grammar Check and Ambiguity Check of Toki Pona Sentences

Post by janKipo »

I kinda wish I could remember what it was that I did that was rude or spammy. The worst I can remember is disagreeing about the formulation of the 'pi' rule and suggesting that several other things in his grammar were somewhat outdated by community standards. I suppose now I should add my objection to "missing "be"" and to building 'li'' into the grammar (although I do, inconsistently, like commas in various places).
User avatar
jan_Lope
Posts: 294
Joined: Sat Apr 06, 2013 1:30 pm
Location: mi lon ma tomo Pelin.
Contact:

Update Toki Pona Parser

Post by jan_Lope »

toki!

Update of the Toki Pona Parser: Instead of "noun phrase", "subject phrase" is used and "predicate phrase" is used instead of "verb phrase". For example, there are Toki Pona sentences without verb.

https://jan-lope.github.io/Toki_Pona-Parser/
pona!
jan Lope
https://jan-lope.github.io
(Lessons and the Toki Pona Parser - A tool for spelling, grammar check and ambiguity check of Toki Pona)

On my foe list are the sockpuppets janKipo and janSilipu because of permanent spamming.
User avatar
jan_Lope
Posts: 294
Joined: Sat Apr 06, 2013 1:30 pm
Location: mi lon ma tomo Pelin.
Contact:

Toki Pona Parser: Separators are no longer displayed.

Post by jan_Lope »

toki!

Toki Pona Parser - Update

In the output of the Toki Pona Parser separators are no longer displayed because they are no longer needed for further sentence analysis. This makes the output shorter and clearer.

For example, the seperator "e" is followed by a direct object. Once this has been detected, you no longer need to display the separator "e".

Before:

Code: Select all

|: mi moku e moku.  
s(dec(sim(sp(sub(pronoun(mi))),pp(verb_tra(moku),obj_d(sep(e),noun(moku))))),sep(.))
Now:

Code: Select all

|: mi moku e moku.  
s(dec(sim(sp(sub(pronoun(mi))),pp(verb_tra(moku),obj_d(noun(moku))))))
Also, the separator "." is no longer required because a declarative sentences has been recognized.

https://jan-lope.github.io/Toki_Pona-Parser/
pona!
jan Lope
https://jan-lope.github.io
(Lessons and the Toki Pona Parser - A tool for spelling, grammar check and ambiguity check of Toki Pona)

On my foe list are the sockpuppets janKipo and janSilipu because of permanent spamming.
Post Reply