swift - Picking notable words from dictionary -


i see many ios apps on line of word of day. in process of making 1 such swift ios app picking random word dictionary picks lousy words. above said apps seem pick useful notable words have learning value.

my question is, how can improve random function picked words notable?

a simple approach assign each word in dictionary weight. weight (or probability of being selected) inverse of probability of appearing in corpus. in order that, need corpus (or large chunk of text) , compute frequency of each word in text (but can use available corpora (there's list here: http://corpus.byu.edu/).

the words more "rare" might valuable , have highest learning value.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -