DraqueT / PolyGlot

PolyGlot is a conlang construction toolkit.
MIT License
392 stars 44 forks source link

[Request] Sentence generator (with tests) #1347

Open hmlendea opened 5 months ago

hmlendea commented 5 months ago

Hi there!

I hope you're doing well. I've been using Polyglot quite extensively lately (and I'm still discovering and figuring out everything it has to offer), and I've found it to be an incredibly helpful tool for language construction. However, I've noticed a feature gap that I believe could significantly enhance its functionality: a Sentence Generator with Testing Capability.

Here's a brief overview of what I have in mind:


Feature Proposal

Introducing a new section within Polyglot where users can generate sentences based on existing lexicon items and parts of speech. For instance, users could input combinations such as "[proper noun for Ana] [verb for 'to have', 3rd person present] [noun for apple, plural]", which would result in a sentence like "Ana has apples." This would greatly streamline the process of creating and testing sentences within the application. Additional Functionality:

Note: The example I provided is just to show my point, it's not a "syntax" proposal. The actual sentence structure definition should be done through the UI, e.g. by selecting items in drop-down boxes.

To take it a step further, we could incorporate testing capabilities for these generated sentences. Users could define an expected result for each saved sentence. If the generated result differs from the expected outcome, the test would be flagged as failed. These failed tests would be visible in the "Check Language" section, allowing users to identify and rectify any discrepancies promptly. This would not only help in detecting existing bugs but also serve as a proactive measure against potential issues in the future.

Benefits


I believe this feature addition would greatly improve the functionality and usability of Polyglot, making it an even more indispensable tool for language construction enthusiasts like myself. I'm excited about the potential it holds and would love to see it integrated into future releases of the application.

Looking forward to hearing your thoughts on this proposal!