-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Requesting ROS 2 words for codespell ROS 2 dictionary support. #5004
Comments
|
This issue has been mentioned on ROS Discourse. There might be relevant details there: https://discourse.ros.org/t/requesting-help-lets-make-ros-2-dictionary-for-spell-checker/42005/1 |
tpoic->topic,srevice->service Or are these already contained in the general spellchecker? amnet->ament,amemt->ament,controll->control |
Certainly, here are some ROS-specific terms that are not typically found in standard dictionaries. Words that I think are commonly used throughout ROS.
Somewhat project-specific words.
|
thanks guys.
@peci1 no i do not think so, but i can check for that.
atm general one.
@Tacha-S those can be added to ignore word instead, i guess. unless you found misspelling examples before like |
What if the docs mention the |
good question, i oversighted that... thanks! i can see many of them under Release section. |
I thought it would be something like creating a dictionary for ROS 2, similar to this: The ROS 2 example makes sense, but considering misspellings, there’s no end to the possibilities—such as swapping one character within a known word, adding an extra character, or omitting a character. I doubt it’s possible to cover everything. Therefore, I assumed this dictionary would focus only on proper nouns related to ROS 2. However, in the example, ros2bag -> rosbag2 is listed. In my opinion, ros2bag might have been intended to be corrected to rosbag2, but it could also refer to a command like ros2 bag play, so it’s unclear what the purpose is. If we were to give similar examples, it might look like:
|
no it is more like https://github.com/codespell-project/codespell/tree/main/codespell_lib/data
yeah, understood. probably it would be useful what happened before, i guess.
as i posted above, there is an actual package for ros2cli extension, called ros2bag. so this is my bad example... sorry for the confusion. some of your examples make sense, i will give it a shot. as described in the issue header, actually there is an issue for the codespell, codespell-project/codespell#3638. this blocks us to detect anyway, thank you very much for your idea! appreciate that. |
follow-up of #4997
currently codespell checker uses ony builtin dictionaries, but we could have ROS 2 dictionary to let the codespell get them for more documentation quality.
I tried some experimental things like below, and i found that
ignore-words
cannot workcase-sensitive
. that does not let the codespell detect the words from the dictionary.see more details for codespell-project/codespell#3638.
what the above modification wants to do is to catch
ROS2
and suggestROS 2
(with space) butros2
. this is because we have many wordsros2
for command line examples such asros2 topic echo xxx
.but this is not working because of codespell-project/codespell#3638.
after all, what we can do at this moment is that
case-insensitive
spell check and suggestion for ROS 2.if you have any idea or suggestions, please post it here. i am all ears 👂👂👂
The text was updated successfully, but these errors were encountered: