- COPYRIGHT AND LICENSE
Regexp::Pattern::License - Regular expressions for legal licenses
Regexp::Pattern::License provides a hash of regular expression patterns related to legal software licenses.
Regexp::Pattern is a convention for organizing reusable regex patterns.
Patterns each covering a single license.
Each of these patterns has exactly one of these tags: type:singleversion:* type:unversioned type:versioned:decimal .
Patterns each covering a single trait occuring in licenses.
Each of these patterns has the tag type:trait .
Patterns each covering a combination of multiple licenses.
Each of these patterns has the tag type:combo .
Patterns each covering either of multiple licenses.
Each of these patterns has the tag type:group .
Additionally, (sub)patterns are available in plaintext form, as
Each pattern targets one or more subjects, i.e. ways to directly or indirectly represent a license.
Beware that not all pattern objects fully cover all subjects.
Distinguishing trait or feature expressed in licensing strings, e.g. an advertising clause or granting "...or any later version."
Coverage for this subject is currently rather weak.
Distinguishing name, e.g. usable in license grant.
Text granting the license.
Text containing licensing terms.
Texts containing both license grant and licensing terms (e.g. BSD- and MIT-style licensing) may be classified as either subject grant or subject license. This may change, as needs for distinction is better understood.
Each pattern can process material within some scope, i.e. a certain sample size of the full subject.
As an example, https://codesearch.debian.net/ use line-based processing, where patterns spanning multiple lines are not applicable.
Pattern typically found within a single line. Typically this means less than 70 characters within scope.
Pattern matching within a sentence.
May span multiple lines, but not across multiple sentences. Typically this means no full-stop or colon within scope.
Pattern matching distinguishing paragraph.
May span multiple sentences, but not multiple paragraphs. Typically this means no newline within scope.
Pattern matching distinguishing section.
May span multiple paragraphs, but not multiple sections. Typically this means blank line within scope.
Pattern may span multiple sections.
Pattern defhashes optionally includes tags, which may help in selecting multiple related patterns.
Tags are hierarchical, with
: as separator, and may be extended without notice. Therefore take care to permit sub-parts when tag-matching, e.g. using a regex like
Pattern covers a license part of a family of licenses.
Pattern covers a combination of multiple licenses.
Pattern covers either of multiple licenses.
Pattern covers a specific version of a license.
Last part of tag is the key of the corresponding non-version-specific pattern.
Pattern covers a single trait occuring in licenses.
Pattern covers a license without versioning scheme.
Pattern covers a license using decimal number versioning scheme.
Tags not documented in this POD, specifically non-hierarchical tags, are deprecated and will be dropped in a future release.
Copyright © 2016-2017 Jonas Smedegaard
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.