View Single Post
Old 01-18-2018, 04:26 PM   #394
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
Quote:
Originally Posted by khl View Post
The default dictionary (dicthtml) able to lookup "bopping" and show the definition of "bop". However, there is no similar feature in the custom dictionary.
Is there anything missing? Is there any option to turn on this feature such as tweaking the index.txt/words?

Regards,
KH
The problem is that we cannot be sure what the code from Kobo does when it attempts to match a selected word against a dictionary, since the source code is not available. I speculate that for certain languages the Kobo performs some sort of stemming (i.e., from inflected/conjugated form to the stem, i.e. the lexical root), but this is a very language-dependent operation. Alternatively, the official Kobo dictionaries contain a lot of keywords pointing to the same definitions.

The latter is also the way you can try to reproduce this feature in custom dictionary: just create many different entries for the same word definition, with all the possible inflected/conjugated keywords. Depending on the language, this might blow the size up considerably. (For example in Italian this operation usually yields x10 size w.r.t. the usual dictionary convention of listing only the infinite for verbs, and the male singular for nouns and adjectives.) There is no such function in Penelope, you need to create such "extended" dictionary yourself, with other means. There are several Python NLP libraries that might help, depending on the language you want to work with.
AlPe is offline   Reply With Quote