-
Save the first letter. Remove all occurrences of h and w except first letter.
-
Replace all consonants (include the first letter) with digits as follows:
2.1. b, f, p, v = 1
2.2. c, g, j, k, q, s, x, z = 2
2.3. d, t = 3
2.4. l = 4
2.5. m, n = 5
2.6. r = 6
-
Replace all adjacent same digits with one digit.
-
Remove all occurrences of a, e, i, o, u, y except first letter.
-
If first symbol is a digit replace it with letter saved on step 1.
-
Append 3 zeros if result contains less than 3 digits. Remove all except first letter and 3 digits after it
A script by V.