Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add codespell: config + workflow (to catch new typos) + fix a number of typos using codespell #3474

Merged
merged 14 commits into from May 13, 2024

Conversation

yarikoptic
Copy link
Contributor

Initially encountered typos in another representation of past version of linkml elsewhere, decided to fix them "in the root" ;) more on codespell: https://github.com/codespell-project/codespell . Resulted in fixing some code including 1 interface but IMHO was ok.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this fix is correct:

  • reoccurrence = a further or repeated occurrence.
  • recurrence = the fact of occurring again.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for spotting!

Filed

Redid fixing, force-pushed.

yarikoptic added a commit to yarikoptic/codespell that referenced this pull request Mar 6, 2024
Originally spotted by @MatthiasWiesmann in review of

- schemaorg/schemaorg#3474

And indeed, "reoccurrence" has different meaning from "recurrence" and also
formally listed in dictionaries, e.g.

- https://www.oed.com/dictionary/reoccurrence_n?tl=true
- https://en.wiktionary.org/wiki/reoccurrence

In search trends
https://trends.google.com/trends/explore?geo=US&q=reoccurrence,recurrence&hl=en
it is only 3 to 79 so ~25 times less "popular" than "recurrence".

Overall -- LGTM, used widely enough, and thus IMHO should not be listed
as a typo.
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w -i 3 -C 2",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
DimitriPapadopoulos pushed a commit to codespell-project/codespell that referenced this pull request Mar 6, 2024
Originally spotted by @MatthiasWiesmann in review of

- schemaorg/schemaorg#3474

And indeed, "reoccurrence" has different meaning from "recurrence" and also
formally listed in dictionaries, e.g.

- https://www.oed.com/dictionary/reoccurrence_n?tl=true
- https://en.wiktionary.org/wiki/reoccurrence

In search trends
https://trends.google.com/trends/explore?geo=US&q=reoccurrence,recurrence&hl=en
it is only 3 to 79 so ~25 times less "popular" than "recurrence".

Overall -- LGTM, used widely enough, and thus IMHO should not be listed
as a typo.
@MatthiasWiesmann MatthiasWiesmann merged commit 498c4fd into schemaorg:main May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants