cspell-dicts icon indicating copy to clipboard operation
cspell-dicts copied to clipboard

Improvement for domains, popular websites, URI protocols

Open geekley opened this issue 3 years ago • 0 comments

A word like "youtube" is marked as a typo in "youtube.com". I'll leave some suggestions:

  1. Add a dictionary for popular websites / brands (if you don't want to mix them with company names). Sometimes the brand / site name isn't equal to the company. Or you can rename the dictionary to "companies and brands", if that makes more sense.
  2. Make it so the URI regex also recognizes links without need for http(s) prefix. That is, when the domain ends in a TLD such as .com, .net, etc, it's detected like a URL. So youtube.com and youtube.com/watch/abcdef123 would be treated like URIs (and typos would be ignored).
  3. Improve URI regex for other protocols too. You can detect URIs and whitelist words for popular protocols with the : syntax (mailto, etc). You can also generalize the URI detection to allow any protocol with the :// syntax. Examples: The mailto protocol blah blah mailto:[email protected]?subject=blah%20blah com.example.myapp://somethingwhatever

geekley avatar Sep 08 '20 02:09 geekley