Wordlists
Wordlist
wordlist.locale ⇒ string
wordlist.locale ⇒ stringThe locale for this wordlist
wordlist.getWord( index ) ⇒ string
wordlist.getWord( index ) ⇒ stringReturns the word at index.
wordlist.getWordIndex( word ) ⇒ number
wordlist.getWordIndex( word ) ⇒ numberReturns the index of word within the wordlist.
wordlist.split( mnemonic ) ⇒ Array<string>
wordlist.split( mnemonic ) ⇒ Array<string>Returns the mnemonic split into each individual word, according to a locale's valid whitespace character set.
wordlist.join( words ) ⇒ string
wordlist.join( words ) ⇒ stringReturns the mnemonic by joining words together using the whitespace that is standard for the locale.
Checks that all words map both directions correctly and return the hash of the lists. Sub-classes should use this to validate the wordlist is correct against the official wordlist hash.
Wordlist.register( wordlist [ , name ] ) ⇒ void
Wordlist.register( wordlist [ , name ] ) ⇒ voidRegister a wordlist with the list of wordlists, optionally overriding the registered name.
Languages
The official wordlists available at `hethers.wordlists`. In the browser, only the english language is available by default; to include the others (which increases the size of the library), see the dist files in the `hethers` package.
hethers.wordlists.cz ⇒ Wordlist
hethers.wordlists.cz ⇒ WordlistThe Czech Wordlist.
hethers.wordlists.en ⇒ Wordlist
hethers.wordlists.en ⇒ WordlistThe English Wordlist.
hethers.wordlists.es ⇒ Wordlist
hethers.wordlists.es ⇒ WordlistThe Spanish Wordlist.
hethers.wordlists.fr ⇒ Wordlist
hethers.wordlists.fr ⇒ WordlistThe French Wordlist.
hethers.wordlists.it ⇒ Wordlist
hethers.wordlists.it ⇒ WordlistThe Italian Wordlist.
hethers.wordlists.ja ⇒ Wordlist
hethers.wordlists.ja ⇒ WordlistThe Japanese Wordlist.
hethers.wordlists.ko ⇒ Wordlist
hethers.wordlists.ko ⇒ WordlistThe Korean Wordlist.
hethers.wordlists.zh_cn ⇒ Wordlist
hethers.wordlists.zh_cn ⇒ WordlistThe Simplified Chinese Wordlist.
hethers.wordlists.zh_tw ⇒ Wordlist
hethers.wordlists.zh_tw ⇒ WordlistThe Traditional Chinese Wordlist.
Last updated