Expand description
Copyright detection module.
Detects copyright statements, holder names, and author information from source code files using a four-stage pipeline:
- Text preparation (normalization)
- Candidate line selection
- Lexing (POS tagging) and parsing (grammar rules)
- Refinement and junk filtering
Modules§
Structs§
- Author
Detection - A detected author name with source location.
- Copyright
Detection - A detected copyright statement with source location.
- Copyright
Detection Options - Holder
Detection - A detected copyright holder name with source location.
Functions§
- detect_
copyrights - Detect copyrights, holders, and authors in the given text content.
- detect_
copyrights_ with_ options - detect_
credits_ authors - Detect authors from a CREDITS-formatted file’s content.
- is_
credits_ file - Check if a file path is a CREDITS/AUTHORS file by its filename.
- strip_
balanced_ edge_ parens - Strip balanced leading and trailing parentheses from a string.