Perl-Toolchain-Gang / Software-License

perl representation of common software licenses
18 stars 40 forks source link

Respect word boundaries #48

Closed charsbar closed 8 years ago

charsbar commented 8 years ago

Not a few modules (eg. https://metacpan.org/pod/POE::Component::Server::Syslog) have a license text without its title in their pod, and CPANTS (with Software::LicenseUtil::guess_license_from_pod) mistakenly guesses that they are under the MIT license, because of a word like "permitted". At least guess_license_from_pod should respect word boundaries. This would also help distinguish FreeBSD from BSD, etc. (It would be nice if it also detects licenses from the license text, but it should be another request).

dod38fr commented 8 years ago

Note that Debian has a license_check script to guess license from comments of source files. I believe this script provides a functionality similar to guess_license_from_pod.

This script is GPL-2, but I'm pretty sure you can get permission from its authors to include code info Software::License (which has a more persmissive license). You certainly have mine.

All the best

karenetheridge commented 8 years ago

We like this and will merge it.

rjbs commented 8 years ago

Thanks, applied in 0.103012!