question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

apostrophe is not a word separator

See original GitHub issue

It seems that foobar's is reported as a word instead of checking for foobar.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Jason3Scommented, Apr 28, 2018

It is not a word separator because it is valid for contractions: don’t, won’t, couldn’t, etc.

It might be worth it to add an option to ignore the trailing 's.

You can already tell the spell checker to ignore these:

  "ignoreRegExpList": ["/'s\\b/"]

cspell provides a way to see what has been ignored. If you run: cspell check -c <cspell.json> <file_to_check.ext> it will out put a colorized version of the file.

image

0reactions
github-actions[bot]commented, May 7, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apostrophe is not a word separator | Jira Server and Data Center
An apostrophe should be a word separator in any case. By exemple if I search the word "intégrateur", it should find the issue...
Read more >
apostrophe is not a word separator · Issue #36 · streetsidesoftware ...
It is not a word separator because it is valid for contractions: don't, won't, couldn't, etc. It might be worth it to add...
Read more >
Apostrophe - Wikipedia
The apostrophe (' or ') is a punctuation mark, and sometimes a diacritical mark, in languages that use the Latin alphabet and some...
Read more >
apostrophe in word not being recognized for string replace
I have to replace the word "you" to "I" and "you're" to "I'm". It will change "you" to "I" but "you're" becomes "I're"...
Read more >
Rules for Separators - IBM
Within quotation marks (or apostrophes if the APOST option is in effect). Spaces between quotation marks are considered part of the nonnumeric literal;...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found