powered by
Garble a sentence with random corruptions
garble_sentence(sentence, corruption_rate = 0.3)
Character. Garbled sentence
Character. Sentence to garble
Numeric. Fraction of words to corrupt (0-1)
set.seed(42) garble_sentence("This is a test", corruption_rate = 0.5)
Run the code above in your browser using DataLab