pig latin

pig latin is a language game or argot in which words in english are altered, usually by adding a fabricated suffix or by moving the onset or initial consonant or consonant cluster of a word to the end of the word and adding a vocalic syllable to create such a suffix.

levenshtein

the levenshtein algorithm measures the smallest number of insertions, deletions, or substitutions required to turn one string into another. in the quiz, we run it on each word individually: summing those per-word edit distances gives the total errors, which we divide by the full character count to yield an accuracy score. by isolating mistakes at the word level, we prevent a single typo from skewing the entire sentence's score.