aboutcode-org / aboutcode-org/scancode-toolkit

Add an attribute for `extra words`

Abierto
#2,349 1 comentario 0 reacciones 1 asignado Reclamado por @AyanSinhaMahapatra Ver en GitHub
license scan new feature scancode-results-analyzer
Lenguaje dominante
Python
Estrellas
2.6k
Forks
791
Merge medio
1 d 12 h
PR fusionados (30 d)
5

Descripción

## 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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.