clearlydefined / clearlydefined/service

normalizing license values

Open
#633 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
51
Forks
46
PR merge metrics
No merged PRs in 30d

Description

There is code in the system somewhere (will have to find it) that normalizes the form of licenses. It simplifies and merges clauses and alphabetizes license mentions in expressions. The idea being that once normalized, you can do simple === string comparisons for settification and UI and ...

Looking at this /stats page for `crates` it seems that something is off. Notice the `MIT OR Apache-2.0` and `Apache-2.0 OR MIT` entries. They should all be the latter (`Apache-2.0 OR MIT` as A comes before M and in this expression order does not matter)

![image](https://user-images.githubusercontent.com/10070956/66796143-aa999e00-eebb-11e9-829e-05aec0793242.png)

It may be the case that there are just some old definitions in there but at some point the data should be cleaned up and licenses recomputed/renormalized.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.