Rdocumentation
powered by
Learn R Programming
riceware (version 0.2)
match_token: Match the token to a word
Description
Retrieves the word corresponding to a given token.
Usage
match_token(token, wordlist = riceware::wordlist_en, title_case = TRUE)
Arguments
token
A correctly formatted token
wordlist
A
data.frame
with at least 2 columns: one named
token
that contains the tokens, one named
word
that contains the words corresponding to the tokens.
title_case
If
TRUE
, the first letter of each word in the passphrase will be capitalized
Value
A character vector of length 1 representing the word corresponding to the token.
Details
Given a token and a list of words, this function returns the word matching the supplied token.