generated from PlexSheep/rs-base
chore(wlist): make all wordlist json sources lowercase #20
cargo devel CI / cargo CI (push) Successful in 2m16s
Details
cargo devel CI / cargo CI (push) Successful in 2m16s
Details
This commit is contained in:
parent
cbce9341e7
commit
2fcdc062c8
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,10 @@
|
||||||
|
import json
|
||||||
|
|
||||||
|
with open('../data/wordlists/german_SUBTLEX-DE_small.json', 'r') as f:
|
||||||
|
word_freqs: dict[str,float] = json.load(f)
|
||||||
|
nd: dict[str, float] = dict()
|
||||||
|
for k in word_freqs:
|
||||||
|
nd[k.lower()] = word_freqs[k]
|
||||||
|
|
||||||
|
with open('../data/wordlists/german_SUBTLEX-DE_small.json', 'w') as f:
|
||||||
|
json.dump(nd, f, indent=4)
|
Loading…
Reference in New Issue