match_token: Match the token to a word

Description Usage Arguments Details Value Author(s)

Description

Retrieves the word corresponding to a given token.

Usage

1
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

Details

Given a token and a list of words, this function returns the word matching the supplied token.

Value

A character vector of length 1 representing the word corresponding to the token.

Author(s)

Francois Michonneau


riceware documentation built on May 2, 2019, 3:42 p.m.