wordfreq 0.2.3

Yet another Rust port of wordfreq for looking up the frequencies of words in many languages
Documentation
1
2
3
4
5
6
7
8
import unicodedata

print("const DIGIT_MAPPING: &[(char, u32)] = &[")
for i in range(0x110000):
    char = chr(i)
    if unicodedata.category(char) == 'Nd':
        print(f"    ('{char}', {int(char)}),")
print("];")