Skip to content

Commit 19b76b5

Browse files
committed
add support for single token
If any single word whose first letter is capital and also having dot(.) between word then consider as NNP.
1 parent 9e0ce3f commit 19b76b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cluecode/copyrights.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1810,6 +1810,9 @@ def build_detection_from_node(
18101810
r'[A-Z][a-z]+[\.,]?'
18111811
r')$', 'NNP'),
18121812

1813+
# Matches a capitalized word with a dot (Like Frankie.Chu).
1814+
(r'^[A-Z][a-zA-Z]*\.[a-zA-Z]+$', 'NNP'),
1815+
18131816
# cmmunications
18141817
(r'communications', 'NNP'),
18151818

@@ -3495,6 +3498,9 @@ def build_detection_from_node(
34953498
# developed by Atkinson, et al.
34963499
AUTHOR: {<AUTH> <NNP>+ <CC> <AUTHDOT> } #Atkinson, et al.
34973500
3501+
# Author:Frankie.Chu
3502+
AUTHOR: {<AUTH> <NNP>}
3503+
34983504
34993505
#######################################
35003506
# Mixed AUTHOR and COPYRIGHT

0 commit comments

Comments
 (0)