The English wordlist for mnemonic phrases.
Decode all the words for the wordlist.
string
[]
Sub-classes may override this to provider a language-specific method for joining words
into a phrase.
By default, words
are joined by a single space.
Parameter | Type | Description |
---|---|---|
words | string [] | The words to join. |
string
The joined phrase.
Sub-classes may override this to provide a language-specific method for spliting phrase
into individual words.
By default, phrase
is split using any sequences of white-space as defined by regular expressions (i.e.
/\s+/
).
Parameter | Type | Description |
---|---|---|
phrase | string | The phrase to split. |
string
[]
The split words in the phrase.
Returns a singleton instance of a LangEn
, creating it if this is the first time being called.
The English wordlist for mnemonic phrases.
Decode all the words for the wordlist.
string
[]
Sub-classes may override this to provider a language-specific method for joining words
into a phrase.
By default, words
are joined by a single space.
Parameter | Type | Description |
---|---|---|
words | string [] | The words to join. |
string
The joined phrase.
Sub-classes may override this to provide a language-specific method for spliting phrase
into individual words.
By default, phrase
is split using any sequences of white-space as defined by regular expressions (i.e.
/\s+/
).
Parameter | Type | Description |
---|---|---|
phrase | string | The phrase to split. |
string
[]
The split words in the phrase.
Returns a singleton instance of a LangEn
, creating it if this is the first time being called.