ChaseKolozsy / TreeLex

(In Development) Automates the process of finding definitions and phrases where only one unknown word exists in the phrase and all words are known in the definition by having AI generate the definitions or modify the phrases to 1 unknown word. Keeps track of all phrases encountered and sorts them based on how many unknown words are in them.
1 stars 0 forks source link

add protocol for definition 404 #70

Closed ChaseKolozsy closed 1 day ago

ChaseKolozsy commented 4 days ago

if a definition lookup in the online dictionary results in a 404, have a protocol for dealing with that. For Japanese, it might attempt to add an "_" plus the hiragana, for another language something else

ChaseKolozsy commented 4 days ago

The default protocol might just be to return a boolean, as in if True create your own definition, if False, don't create a definition, True means that it couldn't find a definition to match the word in the online dict so it must be generated by the definition_generator. This might happen for words that include conjugations or prepositions or suppositions glued onto the word