aboutcode-org / aboutcode-org/scancode-toolkit

License stopwords problems

未关闭
#4,238 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
2.6k
派生
791
平均合并
1 天 12 小时
30 天内合并 PR
5

描述

The issue first showed up when generating new "is_required_phrase" rules or updating rules to become one.

Some short rules are for license keys or names and they can contain stopwords. For instance:
- in the "h2-1.0" license where "h2" is a stopword.
- in liliq-p-1.1 and cern-ohl-p-2.0, "p" is a stopword
- in "Server Side Public License", "side" is a stopword
- in "LGPL licensed bash script", "script" is a stopword

There are a few ways to consider to resolve this:
1. remove some longer stop words like side and script
2. abandon using stop words entirely
3. just ensure that some required phrase rules are not generated/updated as such and accept a tiny bit of inaccuracy for these the few seldom seen rules
(note that these license ids will always be matched in license expressions since that does not ignore stopwords)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。