echogarden 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
],
|
|
13
13
|
|
|
14
14
|
"precededBy": [
|
|
15
|
-
"he", "she", "it", "it's", "who", "have", "be", "is", "are", "isn't", "was", "were", "has", "had", "hadn't", "i've", "we've", "you've", "would've", "might've", "as", "widely", "recently", "haven't", "having", "well", "being", "letter", "story", "statement", "message", "line", "caption", "book", "ruling", "tweet", "
|
|
15
|
+
"he", "she", "it", "it's", "who", "have", "be", "is", "are", "isn't", "was", "were", "has", "had", "hadn't", "i've", "we've", "you've", "would've", "might've", "as", "widely", "recently", "haven't", "having", "well", "being", "gotten", "letter", "story", "statement", "message", "line", "caption", "book", "ruling", "tweet", "email", "recipe", "instructions", "list", "menu", "poster", "passage", "chapter", "paragraph", "sentence", "which", "that", "once", "already", "previously", "formerly", "ever"
|
|
16
16
|
],
|
|
17
17
|
|
|
18
18
|
"notPrecededBy": [
|
|
19
|
-
"to"
|
|
19
|
+
"to", "please", "will", "would", "could", "may", "might"
|
|
20
20
|
],
|
|
21
21
|
|
|
22
22
|
"succeededBy": [
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
],
|
|
52
52
|
|
|
53
53
|
"precededBy": [
|
|
54
|
-
"to", "can", "can't", "will", "would", "we", "they", "i", "you", "don't", "doesn't", "should", "shouldn't", "wouldn't", "may", "might", "could", "couldn't", "these", "those", "must", "mustn't", "shall", "people"
|
|
54
|
+
"to", "can", "can't", "will", "would", "we", "they", "i", "you", "me", "don't", "doesn't", "should", "shouldn't", "wouldn't", "may", "might", "could", "couldn't", "these", "those", "must", "mustn't", "shall", "people"
|
|
55
55
|
],
|
|
56
56
|
|
|
57
57
|
"notPrecededBy": [
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
],
|
|
100
100
|
|
|
101
101
|
"succeededBy": [
|
|
102
|
-
"itself", "us", "opportunities", "them", "his", "her", "our", "my", "its", "this", "no", "some", "another", "different", "various"
|
|
102
|
+
"itself", "us", "opportunities", "them", "his", "her", "our", "my", "its", "this", "no", "some", "another", "different", "various", "several", "many", "few", "other"
|
|
103
103
|
],
|
|
104
104
|
|
|
105
105
|
"notSucceededBy": [
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
],
|
|
132
132
|
|
|
133
133
|
"precededBy": [
|
|
134
|
-
"we", "you", "they", "who", "i", "will", "also", "don't", "didn't", "not", "doesn't", "please", "never", "ever", "often", "frequently", "rarely", "commonly", "we'll", "would", "wouldn't", "instead", "probably", "should", "shouldn't", "must", "mustn't", "shall", "can", "can't", "may", "might", "can", "could", "couldn't", "actually", "always", "sometimes", "typically", "still", "nobody", "everybody", "everyone", "someone", "somebody", "people", "players", "customers"
|
|
134
|
+
"to", "we", "you", "they", "who", "i", "me", "will", "also", "don't", "didn't", "not", "doesn't", "please", "never", "ever", "often", "frequently", "rarely", "commonly", "we'll", "would", "wouldn't", "instead", "probably", "should", "shouldn't", "must", "mustn't", "shall", "can", "can't", "may", "might", "can", "could", "couldn't", "actually", "always", "sometimes", "typically", "still", "nobody", "everybody", "everyone", "someone", "somebody", "people", "players", "customers"
|
|
135
135
|
],
|
|
136
136
|
|
|
137
137
|
"notPrecededBy": [
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
],
|
|
171
171
|
|
|
172
172
|
"precededBy": [
|
|
173
|
-
"to", "who", "we", "and", "i", "they", "cannot", "don't", "not", "can't", "doesn't", "will", "would", "won't", "wouldn't", "please", "never", "humans", "rather", "happily"
|
|
173
|
+
"to", "who", "we", "and", "i", "me", "they", "cannot", "don't", "not", "can't", "doesn't", "will", "would", "won't", "wouldn't", "please", "never", "humans", "rather", "happily"
|
|
174
174
|
],
|
|
175
175
|
|
|
176
176
|
"notPrecededBy": [
|
|
@@ -178,11 +178,11 @@
|
|
|
178
178
|
],
|
|
179
179
|
|
|
180
180
|
"succeededBy": [
|
|
181
|
-
"their", "her", "his", "your", "my", "it", "our", "this", "that", "all", "away", "up", "a", "the", "of", "as", "well", "carefully", "longer", "anywhere"
|
|
181
|
+
"their", "her", "his", "your", "my", "it", "our", "this", "that", "all", "away", "up", "a", "the", "of", "as", "well", "carefully", "long", "longer", "anywhere", "together", "alone", "near", "forever", "close", "far", "further", "nearby", "right", "happily", "alongside", "independently", "away"
|
|
182
182
|
],
|
|
183
183
|
|
|
184
184
|
"notSucceededBy": [
|
|
185
|
-
"action", "stream", "streaming", "streamed", "audience", "performance", "performances", "work", "video", "event", "events", "show", "shows", "tv", "television"
|
|
185
|
+
"action", "stream", "streaming", "streamed", "audience", "performance", "performances", "work", "video", "event", "events", "show", "shows", "tv", "television", "internet", "ammunition", "coverage", "broadcast", "broadcast", "entertainment", "sport", "sports", "chat", "updates", "blog", "feed", "feeds", "fire", "fires", "online", "birth", "births", "webcast", "webcasts", "theater", "concert", "concerts", "today", "tomorrow", "yesterday", "animal", "animals", "virtual", "session", "sessions", "auction", "auctions", "crowd", "audience", "service", "theatre", "virus", "viruses", "studio", "interview", "album", "cartridges", "radio", "games", "tour", "musical"
|
|
186
186
|
],
|
|
187
187
|
|
|
188
188
|
"example": "I can live well."
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
],
|
|
251
251
|
|
|
252
252
|
"precededBy": [
|
|
253
|
-
"to", "i", "they", "we", "you", "will", "would", "wouldn't", "can", "can't", "may", "might", "could", "couldn't", "must", "mustn't", "shall", "won't", "don't", "does", "doesn't", "did", "didn't"
|
|
253
|
+
"to", "i", "me", "they", "we", "you", "will", "would", "wouldn't", "can", "can't", "may", "might", "could", "couldn't", "must", "mustn't", "shall", "won't", "don't", "does", "doesn't", "did", "didn't"
|
|
254
254
|
],
|
|
255
255
|
|
|
256
256
|
"notPrecededBy": [
|
|
@@ -329,11 +329,11 @@
|
|
|
329
329
|
],
|
|
330
330
|
|
|
331
331
|
"precededBy": [
|
|
332
|
-
"to", "will", "doesn't", "won't", "should", "shouldn't", "may", "might", "could", "couldn't", "must", "mustn't", "shall", "can", "can't", "you", "i", "we", "don't", "won't", "don't", "doesn't", "please"
|
|
332
|
+
"to", "will", "doesn't", "won't", "should", "shouldn't", "may", "might", "could", "couldn't", "must", "mustn't", "shall", "can", "can't", "you", "i", "me", "we", "don't", "won't", "don't", "doesn't", "please"
|
|
333
333
|
],
|
|
334
334
|
|
|
335
335
|
"notPrecededBy": [
|
|
336
|
-
"the", "that", "a", "my", "our", "your", "their", "due"
|
|
336
|
+
"the", "this", "that", "a", "my", "our", "your", "their", "due"
|
|
337
337
|
],
|
|
338
338
|
|
|
339
339
|
"succeededBy": [
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
],
|
|
370
370
|
|
|
371
371
|
"precededBy": [
|
|
372
|
-
"to", "i", "they", "we", "you", "will", "would", "can", "can't", "may", "might","could", "couldn't", "must", "mustn't", "shall", "would", "wouldn't", "won't", "don't", "doesn't", "did", "didn't"
|
|
372
|
+
"to", "i", "me", "they", "we", "you", "will", "would", "can", "can't", "may", "might","could", "couldn't", "must", "mustn't", "shall", "would", "wouldn't", "won't", "don't", "doesn't", "did", "didn't"
|
|
373
373
|
],
|
|
374
374
|
|
|
375
375
|
"notPrecededBy": [
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
],
|
|
449
449
|
|
|
450
450
|
"precededBy": [
|
|
451
|
-
"to", "i", "they", "we", "you", "will", "would", "can", "can't", "may", "might", "could", "couldn't", "would", "wouldn't", "won't", "don't", "not", "strongly", "weakly", "did", "didn't"
|
|
451
|
+
"to", "i", "me", "they", "we", "you", "will", "would", "can", "can't", "may", "might", "could", "couldn't", "would", "wouldn't", "won't", "don't", "not", "strongly", "weakly", "did", "didn't"
|
|
452
452
|
],
|
|
453
453
|
|
|
454
454
|
"notPrecededBy": [
|
|
@@ -527,11 +527,11 @@
|
|
|
527
527
|
],
|
|
528
528
|
|
|
529
529
|
"precededBy": [
|
|
530
|
-
"to", "i", "they", "we", "you", "will", "not", "can", "can't", "may", "might", "could", "couldn't", "must", "mustn't", "shall", "would", "wouldn't", "won't", "don't", "doesn't", "did", "didn't", "help"
|
|
530
|
+
"to", "i", "me", "they", "we", "you", "will", "not", "can", "can't", "may", "might", "could", "couldn't", "must", "mustn't", "shall", "would", "wouldn't", "won't", "don't", "doesn't", "did", "didn't", "help"
|
|
531
531
|
],
|
|
532
532
|
|
|
533
533
|
"notPrecededBy": [
|
|
534
|
-
"the", "an", "this", "that", "any", "his", "her", "its", "their", "every", "each", "one", "percent", "cent", "significant", "tax", "sharp", "daily", "price", "small", "slight", "minor", "major"
|
|
534
|
+
"the", "an", "this", "that", "any", "his", "her", "my", "our", "its", "their", "every", "each", "one", "percent", "cent", "significant", "tax", "sharp", "daily", "price", "small", "large", "slight", "tiny", "huge", "minor", "major"
|
|
535
535
|
],
|
|
536
536
|
|
|
537
537
|
"succeededBy": [
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
],
|
|
540
540
|
|
|
541
541
|
"notSucceededBy": [
|
|
542
|
-
"of"
|
|
542
|
+
"of", "in"
|
|
543
543
|
],
|
|
544
544
|
|
|
545
545
|
"example": "I will increase the speed."
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
],
|
|
568
568
|
|
|
569
569
|
"precededBy": [
|
|
570
|
-
"to", "i", "they", "we", "you", "will", "not", "can", "can't", "may", "might", "could", "couldn't", "must", "mustn't", "shall", "would", "wouldn't", "won't", "don't", "doesn't", "did", "didn't", "help"
|
|
570
|
+
"to", "i", "me", "they", "we", "you", "will", "not", "can", "can't", "may", "might", "could", "couldn't", "must", "mustn't", "shall", "would", "wouldn't", "won't", "don't", "doesn't", "did", "didn't", "help"
|
|
571
571
|
],
|
|
572
572
|
|
|
573
573
|
"notPrecededBy": [
|
|
@@ -579,7 +579,7 @@
|
|
|
579
579
|
],
|
|
580
580
|
|
|
581
581
|
"notSucceededBy": [
|
|
582
|
-
"of"
|
|
582
|
+
"of", "in"
|
|
583
583
|
],
|
|
584
584
|
|
|
585
585
|
"example": "I will decrease the speed."
|
|
@@ -607,7 +607,7 @@
|
|
|
607
607
|
],
|
|
608
608
|
|
|
609
609
|
"precededBy": [
|
|
610
|
-
"to", "i", "they", "we", "you", "will", "would", "can", "can't", "may", "might", "could", "couldn't", "must", "mustn't", "shall", "would", "wouldn't", "won't", "don't", "doesn't", "did", "didn't"
|
|
610
|
+
"to", "i", "me", "they", "we", "you", "will", "would", "can", "can't", "may", "might", "could", "couldn't", "must", "mustn't", "shall", "would", "wouldn't", "won't", "don't", "doesn't", "did", "didn't"
|
|
611
611
|
],
|
|
612
612
|
|
|
613
613
|
"notPrecededBy": [
|
|
@@ -685,7 +685,7 @@
|
|
|
685
685
|
},
|
|
686
686
|
|
|
687
687
|
"precededBy": [
|
|
688
|
-
"to", "will", "they", "i", "we", "you", "can", "can't", "may", "might", "could", "couldn't", "we'll", "i'll", "would", "wouldn't", "won't", "couldn't"
|
|
688
|
+
"to", "will", "they", "i", "me", "we", "you", "can", "can't", "may", "might", "could", "couldn't", "we'll", "i'll", "would", "wouldn't", "won't", "couldn't"
|
|
689
689
|
],
|
|
690
690
|
|
|
691
691
|
"notPrecededBy": [
|
|
@@ -963,7 +963,7 @@
|
|
|
963
963
|
],
|
|
964
964
|
|
|
965
965
|
"precededBy": [
|
|
966
|
-
"i", "we", "they", "to", "not", "don't", "should", "shouldn't", "will", "would", "wouldn't", "won't", "does", "doesn't", "can", "can't", "may", "might", "could", "couldn't", "must", "mustn't", "shall"
|
|
966
|
+
"i", "me", "we", "they", "to", "not", "don't", "should", "shouldn't", "will", "would", "wouldn't", "won't", "does", "doesn't", "can", "can't", "may", "might", "could", "couldn't", "must", "mustn't", "shall"
|
|
967
967
|
],
|
|
968
968
|
|
|
969
969
|
"notPrecededBy": [
|
|
@@ -1042,7 +1042,7 @@
|
|
|
1042
1042
|
],
|
|
1043
1043
|
|
|
1044
1044
|
"precededBy": [
|
|
1045
|
-
"i", "we", "they", "to", "not", "doesn't", "don't", "should", "shouldn't", "will", "would", "wouldn't", "won't", "does", "doesn't", "can", "can't", "may", "might", "could", "couldn't", "must", "mustn't", "shall"
|
|
1045
|
+
"i", "me", "we", "they", "to", "not", "doesn't", "don't", "should", "shouldn't", "will", "would", "wouldn't", "won't", "does", "doesn't", "can", "can't", "may", "might", "could", "couldn't", "must", "mustn't", "shall"
|
|
1046
1046
|
],
|
|
1047
1047
|
|
|
1048
1048
|
"notPrecededBy": [
|
|
@@ -1236,7 +1236,7 @@
|
|
|
1236
1236
|
],
|
|
1237
1237
|
|
|
1238
1238
|
"precededBy": [
|
|
1239
|
-
"to", "i", "they", "we", "you", "will", "would", "can", "can't", "may", "might", "would", "wouldn't", "won't", "don't", "doesn't", "should", "shouldn't", "could", "couldn't", "must", "mustn't", "shall", "did", "didn't", "then"
|
|
1239
|
+
"to", "i", "me", "us", "they", "we", "you", "will", "would", "can", "can't", "may", "might", "would", "wouldn't", "won't", "don't", "doesn't", "should", "shouldn't", "could", "couldn't", "must", "mustn't", "shall", "did", "didn't", "then"
|
|
1240
1240
|
],
|
|
1241
1241
|
|
|
1242
1242
|
"notPrecededBy": [
|
|
@@ -1276,7 +1276,7 @@
|
|
|
1276
1276
|
],
|
|
1277
1277
|
|
|
1278
1278
|
"precededBy": [
|
|
1279
|
-
"to", "i", "they", "we", "you", "will", "would", "can", "can't", "may", "might", "would", "wouldn't", "won't", "don't", "doesn't", "should", "shouldn't", "could", "couldn't", "must", "mustn't", "shall", "did", "didn't"
|
|
1279
|
+
"to", "i", "me", "us", "they", "we", "you", "will", "would", "can", "can't", "may", "might", "would", "wouldn't", "won't", "don't", "doesn't", "should", "shouldn't", "could", "couldn't", "must", "mustn't", "shall", "did", "didn't"
|
|
1280
1280
|
],
|
|
1281
1281
|
|
|
1282
1282
|
"notPrecededBy": [
|
|
@@ -1316,7 +1316,7 @@
|
|
|
1316
1316
|
],
|
|
1317
1317
|
|
|
1318
1318
|
"precededBy": [
|
|
1319
|
-
"to", "will", "help", "can", "we", "not", "would", "wouldn't", "won't", "do", "don't", "doesn't", "should", "shouldn't", "could", "couldn't", "must", "mustn't", "shall", "can", "can't", "may", "might", "did", "didn't", "directly", "does", "they", "adequately", "you", "really", "actually", "effectively", "can't", "leaders", "properly", "
|
|
1319
|
+
"to", "will", "help", "can", "i", "we", "me", "not", "would", "wouldn't", "won't", "do", "don't", "doesn't", "should", "shouldn't", "could", "couldn't", "must", "mustn't", "shall", "can", "can't", "may", "might", "did", "didn't", "directly", "does", "they", "adequately", "you", "really", "actually", "effectively", "can't", "leaders", "properly", "specifically", "still", "please", "did", "potentially", "cannot", "meaningfully", "finally", "fully", "completely", "continually", "it'd", "they'd", "visibly", "ever", "i'll", "itself", "therefore"
|
|
1320
1320
|
],
|
|
1321
1321
|
|
|
1322
1322
|
"notPrecededBy": [
|
|
@@ -1355,7 +1355,7 @@
|
|
|
1355
1355
|
],
|
|
1356
1356
|
|
|
1357
1357
|
"precededBy": [
|
|
1358
|
-
"to", "will", "would", "wouldn't", "won't", "
|
|
1358
|
+
"to", "will", "would", "wouldn't", "won't", "i", "we", "me", "help", "can", "should", "must", "does", "doesn't", "they", "didn't", "you", "really", "could", "actually", "effectively", "can't", "still", "can", "can't", "may", "did", "potentially", "cannot", "meaningfully", "finally", "continually", "it'd", "they'd", "visibly", "ever", "i'll", "continuously"
|
|
1359
1359
|
],
|
|
1360
1360
|
|
|
1361
1361
|
"notPrecededBy": [
|
|
@@ -1625,7 +1625,7 @@
|
|
|
1625
1625
|
],
|
|
1626
1626
|
|
|
1627
1627
|
"precededBy": [
|
|
1628
|
-
"to", "i", "they", "we", "should", "will", "would", "wouldn't", "won't", "don't", "doesn't", "should", "shouldn't", "could", "couldn't", "must", "mustn't", "shall", "can", "can't", "may", "might", "did", "didn't", "does", "doesn't"
|
|
1628
|
+
"to", "i", "me", "they", "we", "should", "will", "would", "wouldn't", "won't", "don't", "doesn't", "should", "shouldn't", "could", "couldn't", "must", "mustn't", "shall", "can", "can't", "may", "might", "did", "didn't", "does", "doesn't"
|
|
1629
1629
|
],
|
|
1630
1630
|
|
|
1631
1631
|
"notPrecededBy": [
|
|
@@ -1665,7 +1665,7 @@
|
|
|
1665
1665
|
],
|
|
1666
1666
|
|
|
1667
1667
|
"precededBy": [
|
|
1668
|
-
"to", "i", "they", "we", "should", "will", "would", "wouldn't", "won't", "don't", "doesn't", "should", "shouldn't", "could", "couldn't", "must", "mustn't", "shall", "can", "can't", "may", "might", "did", "didn't", "does", "doesn't"
|
|
1668
|
+
"to", "i", "me", "they", "we", "should", "will", "would", "wouldn't", "won't", "don't", "doesn't", "should", "shouldn't", "could", "couldn't", "must", "mustn't", "shall", "can", "can't", "may", "might", "did", "didn't", "does", "doesn't"
|
|
1669
1669
|
],
|
|
1670
1670
|
|
|
1671
1671
|
"notPrecededBy": [
|
|
@@ -1705,7 +1705,7 @@
|
|
|
1705
1705
|
],
|
|
1706
1706
|
|
|
1707
1707
|
"precededBy": [
|
|
1708
|
-
"to", "not", "doesn't", "should", "shouldn't", "will", "would", "wouldn't", "won't", "does", "doesn't", "can", "can't", "may", "might", "could", "couldn't", "must", "mustn't", "shall"
|
|
1708
|
+
"to", "i", "me", "we", "us", "not", "doesn't", "should", "shouldn't", "will", "would", "wouldn't", "won't", "does", "doesn't", "can", "can't", "may", "might", "could", "couldn't", "must", "mustn't", "shall"
|
|
1709
1709
|
],
|
|
1710
1710
|
|
|
1711
1711
|
"notPrecededBy": [
|
|
@@ -1743,7 +1743,7 @@
|
|
|
1743
1743
|
],
|
|
1744
1744
|
|
|
1745
1745
|
"precededBy": [
|
|
1746
|
-
"to", "i", "will", "would", "they", "we", "don't", "doesn't", "wouldn't", "can", "can't", "may", "might", "did", "didn't", "could", "couldn't", "must", "mustn't"
|
|
1746
|
+
"to", "i", "me", "will", "would", "they", "we", "don't", "doesn't", "wouldn't", "can", "can't", "may", "might", "did", "didn't", "could", "couldn't", "must", "mustn't"
|
|
1747
1747
|
],
|
|
1748
1748
|
|
|
1749
1749
|
"notPrecededBy": [
|
|
@@ -9,7 +9,8 @@ export function getNormalizedFragmentsForSpeech(words, language) {
|
|
|
9
9
|
const fourDigitDecadePattern = /^[0-9][0-9][0-9]0s$/;
|
|
10
10
|
const fourDigitYearRangePattern = /^[0-9][0-9][0-9][0-9][\-\–][0-9][0-9][0-9][0-9]$/;
|
|
11
11
|
const wordsPrecedingAYear = [
|
|
12
|
-
"in", "since", "
|
|
12
|
+
"in", "the", "a", "to", "of", "since", "from", "between", "by", "until", "around", "before", "after",
|
|
13
|
+
"his", "her", "year", "years", "during", "copyright", "©", "early", "mid", "late",
|
|
13
14
|
"january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december",
|
|
14
15
|
"jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"
|
|
15
16
|
];
|
|
@@ -107,8 +108,15 @@ export function normalizeFourDigitDecadeString(decadeString) {
|
|
|
107
108
|
const firstTwoDigitsValue = parseInt(decadeString.substring(0, 2));
|
|
108
109
|
const secondTwoDigitsValue = parseInt(decadeString.substring(2, 4));
|
|
109
110
|
let normalizedString;
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
const isBeforeSecondMillenium = firstTwoDigitsValue < 10;
|
|
112
|
+
const isMilleniumDecade = firstTwoDigitsValue % 10 == 0 && secondTwoDigitsValue == 0;
|
|
113
|
+
if (!isBeforeSecondMillenium && !isMilleniumDecade) {
|
|
114
|
+
if (secondTwoDigitsValue != 0) {
|
|
115
|
+
normalizedString = `${firstTwoDigitsValue} ${secondTwoDigitsValue}s`;
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
normalizedString = `${firstTwoDigitsValue} hundreds`;
|
|
119
|
+
}
|
|
112
120
|
}
|
|
113
121
|
else {
|
|
114
122
|
normalizedString = decadeString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextNormalizer.js","sourceRoot":"","sources":["../../src/nlp/TextNormalizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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