Text similarity is measured using metrics like Levenshtein distance, indicating how similar two words are.