Explorer

Explorer

Different ways to explore a dictionary

Constructor

new Explorer()

Source:

Methods

(static) anagrams(dictionary, wordsnullable, report)

Description:
  • Find anagrams of the words that use all the letters. . works as a character wildcard.

Source:
Parameters:
Name Type Attributes Description
dictionary Dictionary

dawg to explore

words Array.<string> <nullable>

list of words to check

report function

reporter function(word). This function will be called each time a matching word is found, passing the word as a string.

(static) arrangements(dictionary, wordsnullable, report)

Description:
  • Find arrangements of the letters in the words e.g. UIE is a an arrangement of the letters in QUIET, as is EIU and IUE.

Source:
Parameters:
Name Type Attributes Description
dictionary Dictionary

dawg to explore

words Array.<string> <nullable>

list of words to check

report function

reporter function(word). This function will be called each time a matching word is found, passing the word as a string.

(static) hangmen(dictionary, wordsnullable, report)

Description:
  • Find words that hangman match all the letters. . works as a character wildcard.

Source:
Parameters:
Name Type Attributes Description
dictionary Dictionary

dawg to explore

words Array.<string> <nullable>

list of words to check

report function

reporter function(word). This function will be called each time a matching word is found, passing the word as a string.

(static) list(dictionary, wordsnullable, report)

Description:
  • List all the words in the dictionary. If words is given, list all dictionary entries that start with one of the words.

Source:
Parameters:
Name Type Attributes Description
dictionary Dictionary

dawg to explore

words Array.<string> <nullable>

list of words to check

report function

reporter function(word). This function will be called once for each word in the dictionary. as a string.

(static) sequences(dictionary, wordsnullable, report)

Description:
  • Determine if the words passed are valid sub-sequences of any word in the dictionary e.g. 'UZZL' is a valid sub-sequence in an English dictionary as it is found in 'PUZZLE', but 'UZZZL' isn't.

Source:
Parameters:
Name Type Attributes Description
dictionary Dictionary

dawg to explore

words Array.<string> <nullable>

list of words to check

report function

reporter function(word). This function will be called each time a matching word is found, passing the word as a string.