This is api for conlangs (Construct Languages), Good words generators are rarely then I made my own. I am extending this to be more than generate words.
Warning
this is still in development
only two dependencies in this API: Bun and Hono
- clone the repo
git clone https://github.com/devEducaua/lexicongenerator.git- install the dependencies
bun install- compile
bun run build- run the api
bun run startruns in the port :8080, all endpoints prefixed with /api/
/generate
this endpoint generate a list of words based on the informations that you send, send a POST method request. here an example body:
{
"groups": {
"C": [ "p", "t", "k", "l", "m", "n", "s" ],
"V": [ "a", "i", "u" ],
"F": [ "m", "n" ]
},
"numberWords": 30,
"maxLength": 4,
"minLength": 1,
"exclusions": [ "ti" ],
"structs": "CVF",
"rewrites": {}
}/frequen
this endpoint discover what is the most common phonemes on a text. send a POST method request, example body:
{
"phonemes": [ "o", "a", "e" ],
"text": "The quick brown fox jumps over the lazy dog"
}