Skip to content

Commit 1630148

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. Signed-off-by: Alok Kumar <alokkumarjipura9973@gmail.com>
1 parent 07f956d commit 1630148

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cluecode/copyrights.py

+6
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)