4 ms·
The fact that this does a request with the text you're entering to a server is just funny to me. This would be super easy to check in the frontend.
by boredpudding 4y ago
The fact that this does a request with the text you're entering to a server is just funny to me. This would be super easy to check in the frontend.
- sph 4y agoAverage 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...
- bunkerbewohner 4y agoI thought the same and rewrote this in JavaScript running on the client only https://bunkerbewohner.github.io/js-up-goer-five/ https://bunkerbewohner.github.io/js-up-goer-five/