Checks if the character string may be used as an n-gram and its notation follows specific
convention of biogram
package.
is_ngram(x)
Arguments
x |
character string representing single n-gram.
|
Value
TRUE
if n-gram's notation is correct, FALSE
if not.
Examples
#> [1] TRUE
#> [1] TRUE