If you'd like, you can make Licensee less stringent in its comparison, but risk getting false positives as a result. The confidence threshold is an integer between 1 and 100, with the default being 95, meaning that License is at least 95% confident that the file represents the matched license.
LICENSEE.confidence_threshold
=> 95
LICENSEE.confidence_threshold = 90
=> 90
Licensee supports the ability to take into account Ruby, Node and CRAN package manager metadata, disabled by default. There are reasons you may not want to use this metadata. You can explicitly instruct licensee to take this information into account as follows:
project = Licensee.project("path/to/project", detect_packages: true)
project.license
=> #<Licensee::Licensee key="mit">
Licensee supports the ability to take into account human readable references to licenses within the project's README, disabled by default. There are reasons you may not want to use this. You can explicitly instruct licensee to take this information into account as follows:
project = Licensee.project("path/to/project", detect_readme: true)
project.license
=> #<Licensee::Licensee key="mit">