find_candidate {acroname}R Documentation

Find candidate

Description

This is an unexported helper for acronym. The function is used wrapped in a tryCatch() that uses withTimeout to manage maximum wait time for the candidate acronym search.

Usage

find_candidate(collapsed, acronym_length, probs, dictionary, words_len)

Arguments

collapsed

The collapsed string of characters generated by mince

acronym_length

Number of characters in acronym; default is 3

probs

Vector of probabilities for selecting each character while generating candidate

dictionary

Character vector containing dictionary of terms from which acronym should be created; default is NULL and hunspell "en_us" dictionary will be used

words_len

Vector of the length of each word in the input

Value

Named list with three elements:


[Package acroname version 0.1.0 Index]