aboutcode-org / aboutcode-org/scancode-toolkit

Add an attribute for `extra words`

Ouverte
#2,349 1 commentaire 0 réactions 1 personne assignée Réclamée par @AyanSinhaMahapatra Voir sur GitHub
license scan new feature scancode-results-analyzer
Langage dominant
Python
Étoiles
2.6k
Forks
791
Merge moyen
1 j 12 h
PR mergées (30 j)
5

Description

## Short Description

Adding a new integer attribute `extra_words` to each matched license.

## Select Category

- [x] Enhancement
- [ ] Add License/Copyright
- [ ] Scan Feature
- [ ] Packaging
- [ ] Documentation
- [ ] Expand Support
- [ ] Other

## **Describe the Update**

There are two cases when calculating score,

1. If `score` == `match_coverage` * `rule_Relevance`, then there are no
extra words in that license match.
2. If `score` != `match_coverage` * `rule_Relevance`,
then there are extra words in that match. (all the words in the rule are present, but there are more words)

In the second case, the score is decreased based on how much extra words is there, and presently
this isn't returned.

## **How This Feature will help you/your organization**
Will help in `scancode-results-analyzer`

## **Can you help with this Feature**
Yes.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.