Given a list of letters and a dictionary, is there a pangram?

has_pangram(game_letters, dictionary = normal)

Arguments

game_letters

A character vector of letters in the format of c("l", "e", "t", "r", "s") or "letrs"

dictionary

A character list of words---defaults to the normal list from the package.

Value

Logical: TRUE if a pangram exists; FALSE if not.

See also

Examples

has_pangram(c("l", "e", "t", "r", "s")) # yes
#> [1] TRUE
has_pangram(c("d", "r", "g", "t", "i")) # none
#> [1] FALSE
# or:
has_pangram("leters")
#> [1] TRUE