4 ms·
Average word length in English = 4.7 characters 4.7 * 1000 words = 4700 bytes of additional data to download. For some reason it intuitively felt like it woul
by sph 4y ago
Average word length in English = 4.7 characters
4.7 * 1000 words = 4700 bytes of additional data to download.
For some reason it intuitively felt like it would be a lot of data to bundle in the frontend, but we routinely include images in our websites that weigh 100 times that figure.
Let's keep going: the average English-speaking person knows about 30,000 words. A spellchecker in the frontend would use 30,000 * 4.7 = 141 KB. Still less than the average 3x image in a blog post.
There are 171,000 words in the Oxford dictionary. That's 800 KB, less than the weight of many popular websites.
- evgpbfhnr 4y agoAnd you can compress it, so it's actually much less than this as English (and languages in general) are highly compressible...