The word "thank" has four phonemes: /th/, /a/, /n/, /k/.
View page
If you have the x-th percentile, the index from a sample of size
n that corresponds to it is k := max { i - natural | i <=
x*n/100 }. Algorithmically, this is to sort the array and take the
element k := floor(x*n/100).