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 support for comma-separation to "loose" classifier #93

Open
suve opened this issue Aug 25, 2023 · 0 comments
Open

Add support for comma-separation to "loose" classifier #93

suve opened this issue Aug 25, 2023 · 0 comments

Comments

@suve
Copy link
Owner

suve commented Aug 25, 2023

An unfortunate, but somewhat common pattern seen in licence strings is the use of a comma to list multiple licences, like so:

Licence-A, Licence-B, Licence-C

It would be good to add some support for this form to the loose classifier.

Things to consider:

  • Just because a string contains a comma, it doesn't mean the comma must be a separator. For example, Fedora used the Redistributable, no modification permitted string for a long time to describe firmware blobs.
  • It is not possible to determine if A, B is supposed to mean A or B or A and B. Since the former interpretation increases the risk of false-negatives (non-free software being listed as free), the latter interpretation should be used.
  • When presenting the licensing breakdown to the user (via the --explain option), the program should try to remain as close as possible to the input string and use a comma to separate the individual licences.
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

No branches or pull requests

1 participant