5 ms·
Surprisingly, automatic language detection isn't always reliable. And since the DOM actually has an attribute for this, which can also be placed on individual
by mlang23 5y ago
Surprisingly, automatic language detection isn't always reliable. And since the DOM actually has an attribute for this, which can also be placed on individual elements like a p or div, the first choice IMO is to rely on what the site declared.
- harperlee 5y agoYeah in general, explicit declarations should not be overriden by guesswork!
- sswam 5y agoIt seems to me that correctly guessing a natural language is a whole lot easier than speech synthesis. I think it would be more common to have incorrect declarations than detection failures. A bit like how comments describing code are often incorrect because they weren't updated when the code changed.