Hacker News new | ask | show | jobs
by themadstork 3341 days ago
Yeah, I simply ingested words in French from a few online ballet dictionaries into a JSON object, and used a recursive context-free grammar to generate (generally) grammatically correct sentences. The result was a mixture of English and French because the dancer (Sarah Hay) requested that I add a few words of her choice in English as well.

Here's some information about context-free grammars: http://www.decontextualize.com/teaching/rwet/recursion-and-c...

1 comments

The dictionary gives you the terms but how do you get the rules (like S -> NP VP) to combine them? Or were the rules the same as the English language just with the verbs from the ballet dictionary? Thank you for the link also.