Description Usage Arguments Value Examples
View source: R/detect_gibber.R
Assess whether a sentence contains gibberish words. For each word in a sentence, a Markov chain inspects the sequence of vowels and consonents to estimate whether a sentence consists of natural words. Therefore, words like 'asdfg' and 'dfrgfh' are considered unnatural and are classified as gibberish. The reliability of the model increases when your textual data contains more characters.
1 | is_gibberish(text, threshold = 0.00345)
|
text |
character. Words or sentences. |
threshold |
numeric. Cutoff to classify text as either gibber or not. |
logical
1 2 | text <- c("They don't want to know", "asdfg")
is_gibberish(text)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.