Open Zireael07 opened 3 years ago
Nice! Love Toki Pona. (Sorry about the accidental editing of your post, I undid it.)
@dariusk: Do you know if projects can be parts of a bigger project or do I have to move the sentence generator to its own repo? Currently I'm testing/using it for one-liners in a text-based computer game
As long as the source is viewable and you publish 50k words of text somewhere, anything else goes. The source doesn't need to be standalone.
On Mon, Nov 1, 2021, 9:51 AM Zireael07 @.***> wrote:
@dariusk https://github.com/dariusk: Do you know if projects can be parts of a bigger project or do I have to move the sentence generator to its own repo? Currently I'm testing/using it for one-liners in a text-based computer game
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NaNoGenMo/2021/issues/20#issuecomment-956401851, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACBBVW7PBNIEECAHEKUH6DUJ3AS3ANCNFSM5HENZHJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Real life intervened (as in, I got sick last week) so I cut some corners to get question generation working.
I got paragraphs working, including making them of random length.
Considering I've only got a week left, the next step will likely be trying to provide sensible answers to the questions (which is kinda necessary for the game itself, not just the NaNoGenMo side output), and then it'll be just a matter of churning out enough paragraphs to beat the threshold.
I've implemented a simple text substitution engine to deal with phrases that are longer than 3 words (for 3 words or less, the Markov chain works fine)
Next step as I mentioned would be dialogue, but there's only 4 days left so likely it'll get postponed to after NaNoGenMo...
DONE!!!
The final commit is https://github.com/Zireael07/Rust-HTML-mudlike/commit/154db953b6db7a01b3d9b0b82d2f179328f96d06
The language code is here: https://github.com/Zireael07/Rust-HTML-mudlike/blob/master/src/language.rs
I have a workable beginning of a Toki Pona sentence generator (a constrained Markov chain). All it should take to finish is to generate enough to pass the 50,000 words threshold.
EDIT: Toki Pona is a minimalistic conlang (around 150-200 words) with an isolating grammar (i.e. words are not compounded). It's likely I will make minimal changes to the language (e.g. making 'li' particle obligatory even for mi and sina) - but that should be fine as there is no 'single' way to speak/write TP.
Optional things