Wiki
Clone wikiWordomizer / Home
Wordomizer
##Constructor
- Parameters
- array, which contains list with words, which you will use
###random
-
Description
- Returns random word, by specified criteria(s).
-
Parameters
- options
- words, if you don't specify any words in the constructor, you can specify them as option
- length, if given return random word with specified length. Length can be given as object with two options.
- gt, which will return random word, which length is > from given length
- lt, which will return random word, which length is < from given length
- list, specifies number of random words, which will be returned
- startsWith, will return random word, which starts with given char, or string
- endsWith, will return random word, which ends with given char or string
- contains, will return random word, which contains given char or string
- without, will return random word, which doesn't contain given char or string
- options
###get
-
Description
- Returns first word (or list), which satisfy given criteria(s)
-
Parameters
-
options
- words, if you don't specify any words in the constructor, you can specify them as option
-
length, if given return word with specified length. Length can be given as object with two options.
- gt, which will return word, which length is > from given length
- lt, which will return word, which length is < from given length
-
startsWith, will return list of words, which starts with given char, or string
- endsWith, will return list of words, which ends with given char or string
- contains, will return list of words, which contains given char or string
- without, will return list of words, which doesn't contain given char or string
-
Updated