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

[release/v1] Create tool/script that validates standard names using official name components? #100

Open
nusbaume opened this issue Mar 6, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@nusbaume
Copy link
Collaborator

nusbaume commented Mar 6, 2025

In the new release/v1 branch we are moving to a more rules-based construction of standard names, where accepted base names can be combined with accepted prefixes and suffixes in a particular order to produce valid standard names. Thus it could be useful if there was some sort of script or tool that could check a standard name that is using those components to see if it is valid or not (i.e. follows all of the rules), which could alleviate the review burden for PRs that are adding new standard names.

This script could also, at least theoretically, be used to generate a "best-guess" of what the units for the standard name should be based off the units listed in the dictionary itself (for example, a prefix of tendency_of should add a s-1 to the units).

Of course it should be noted that there is likely no way that a tool could be used to validate every possible type of standard name or unit. However, as more and more standard name "components" are added, then hopefully more standard names can be checked without requiring a person to do so manually.

@nusbaume nusbaume added the enhancement New feature or request label Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant