I’ve found a way to create a simple AI that uses duck duck go to: (1. generate a definition for one word, (2. generate a definition for another word, (3. Combine the two words, and find the definition for the compound word.
Theoretically this can go on and on:
corn meal => Cornmeal => Maize => Corn Maze => Maize maze
It’s one of those algorithms / pseudocodes that has eluded me for a while, but turns out to be really simple:
Input word for duck duck go definition. Print results for first definition. Input second word for duck duck go definition. Print results for second definition. Infer compound word by combined headers Search for definition of compound word. Print results of the definition of compound word.
Each header and definition is also recorded to its own file, for later word look up.