-
Notifications
You must be signed in to change notification settings - Fork 654
/
tagger.scratch.js
286 lines (256 loc) · 9.48 KB
/
tagger.scratch.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
/* eslint-disable no-console, no-unused-vars */
import nlp from './src/four.js'
let arr = [
// %Plural|Verb% %Noun|Verb%
// `[Shares] [finish] [lower] on [sustained] selling`,
// `forward: appartment pricing`,
// `[wear] [deserted] look`,
// `[Place] items in the top`,
// imperatives
// `C'mon, Luisa, you have a chance`,
// `would you mind watching Ben for me?`,
// `i see the girl, respect the guard, and go right home`,
// `if Chandler had kissed her, would you hear him out?`,
// `Honey, would you like a snack?`,
// `teach him five lessons`,
// `Have things to occupy yourself during the trip.`,
// `Service wise, no complaints`,
// 'The Bill was passed',
// 'give parents their power',
// `were overrun by insurgents`,
// `been overrun by insurgents`,
// `would not give rise`,
// `he will stroll downtown`,
// `I wasn't born until he was`,
// `people who will explore`,
// 'Does he blink frequently?',
// 'they have more product.',
// `re-tool my exhaust`,
// `soy green tea lattes are [amazing]`,
// `Seeing them [drive] away`,
// 'some require equity in order to qualify',
// `[Light] [travels] [faster] than [sound]`,
// `[this] [is] [a] [cool] [place] hang out`,
// `Not, not more bureaucracy, not more red tape`,
// `we'll soon make him shudder.`,
// `just like a dream`,
// `[Why] did [Jon] Snow [stand] in line`,
// `he would [later] [confess] [that]`,
// `why the job [matters] to you`,
// `women never [like] Joey`,
// `I let another one [get] [away]`,
// `He was [shot] in the chest and arm and [received] shrapnel [wounds]`,
// `[Compile] information about [claims] you filed`,
// `The flounder and fungus are [prepared] Sichuan style`,
// `a win-win situation`,
// `[Browse] [to] the C:\\RealityFactory`,
// `Uh-huh Jim [Carrey] is [challenged]`,
// `Stand tall [hold] your head high`,
// `Renovations at Union Station [reveal] pristine facade`,
// `[Proofread] your writing`,
// `And the word [spread] of Billy the Kid`,
// `You can [soon] [drink] coffee`,
// `[Advocates] [lock] court premises`,
// `HC [calls] for CBI chargesheet`,
// `where a train [stops]`,
// `[estimates] [show] that by the end`,
// `Spice [slashes] airtime [rates] for [cashcard] users`,
// `And [more] Americans [finish] college`,
// `[where] an ocean liner is [launched]`,
// ^%Noun|Verb% %Plural|Verb%
// `it's milk`,
// `it's well known`,
// `when's he coming`,
// `it's well known for it's burger`,
// `so that [workers] can take [time] [off]`,
// `Statistics [show] [that] teen pregnancy`,
// `were as [follows]`,
// 'cake',
// 'cupcakes',
// 'earthquakes',
// 'mistakes',
// 'snakes',
// '3 takes',
// `hundred shots in my face and [hands]`,
// `he'd make it right`,
// `look more intimidating.`,
// `Men are like bank accounts.`,
// `can we account for earthquakes?`,
// `back to my friends house`,
// `a filling pita wrap.`,
// `when it comes to grades.`,
// `your education and training`,
// `ensure privacy, and save lives.`,
// `Air, air, air, air, air, air`,
// ` previous games were generally mirrors`,
// `the bird song was deafening.`,
// ` side to side`,
// 'their past mistakes',
// `very runny and soup-like.`,
// `bring you back`,
// `community of cooperation, not conflict.`, //something wrong here?
// `show you trigger discipline.`,
// `show u trigger discipline.`,
// `the medicines and stuff.`,
// `Type your desired [name] into the box`,
// 'the appalling chemical-weapons attack',
// `[The] [housing] and employment crisis`,
// 'then better bring dog too',
// `brighter [lights] and [colours]`,
// `during your Christmas [shopping] this year`,
// `the sharing of electron [pairs] between atoms`,
// `[Brainstorm] other ways of [understanding] your [appearance]`,
// `[all] you [vegetarians]`,
// `eating [in] the [parking] lot`,
// `walked [hand] [in] hand`,
// `Have a [back] up buddy`,
// `from the [gravest] health threat that they face an [epidemic] of teen smoking`,
// `Walk or [bike] everywhere you can`,
// `I had a [roasted] chicken [craving] one day`,
// `an [evidentiary] [hearing]`,
// `a monopoly on East Coast [gambling]`,
// 'Bite or [lick] your lower lip',
// `suddenly [there] came a [tapping]`,
// 'his break ups',
// 'the fill up',
// 'Fill up the tank',
// 'we stood back so carefully',
// `[Speed] Post [moves] at snail pace`,
// 'use reverse psychology',
// 'Hash Browns',
// `a giant [glimmering] silver web`,
// 'No walk in the park for us',
// 'there was no wait on a Saturday morning.',
// 'during my next stay in Orlando.',
// 'an elaborate pick-up line',
// 'It is an evil growing out of our institutions',
// 'his best-known lyrics',
// 'a thalidomide binding protein.',
// 'wearing a moth-eaten suit.',
// 'for the days ahead stay firm',
// 'a new Act compelling registration',
// 'The vet considered amputation',
// 'with your hands up',
// `you seem unapproachable and [closed] [off]`,
// 'the instant he walked',
// `make your girl [feel] greater`,
// `what your Majesty [asks] of me`,
// `did the sailor [ground] his son`,
// `But before I do that [let] me put a hand on it`,
// `if you [like] comics`,
// `helped [marshal] support`,
// `If a ball [hit] into play rolls foul before passing through the infield`,
// `does my molecule [bind]`,
// `Next, take a look`,
// 'hella-boring meeting',
// 'his best-known lyrics',
// 'went right in',
// missing nouns
// `A little [make up] can go a long way`,
// `Take your own personality and [values] into consideration`,
// `this witch who turned men into [pigs]`,
// `[Snow] White roommate who fits the category`,
// ' when he was out hunting',
// `like dinner [parties] or game nights`,
// `Let me take you to [places]`,
// `Guess who's doing [laundry] there too`,
// `You've had [smoke] blown your way`,
// `With more [holes] than a rug`,
// `It's [buzzcut] season anyway`,
// 'you are hugging parked cars',
// 'recognizing written language',
// 'For being organized',
// 'a nearly overpowering feeling',
// 'keep subsidizing skyrocketing tuition',
// `Grimy [work] you guys do`,
// `dump truck smashing into [overpass] on the 401`,
// `[Iron] Maiden land in Beijing`,
// missing adjectives
// `The [holy] [well] of St Guron`,
// `with many [key] commanders`,
// `'Cause girl you're [amazing] just the way you are`,
// `things turn [sour] really quick`,
// `their [chosen] paths`,
// `Are you [as] [confused] as I am`,
// `I wish my [only] problem in life`,
// `You and my sister, sittin’ in a tree.`,
// `prepayment has taken 45 days alone`
// `countries as a whole seem brighter`,
// `four years of uninterrupted economic growth`,
// `because people of varying ethnicities`,
// 'designed to help use the newly written',
// 'Power watchdog raps utility',
// 'Boost user engagement',
// 'To place close together',
// 'Hash Browns',
// 'Next, take a look at your dropsuit fittings',
// 'NMDAR signaling increases RanBP1 expression',
// 'in the room where you usually nurse',
// 'call and reserve one',
// 'to contact her in an emergency',
// 'firms may face difficulties in raising',
// 'her opera stage debut in 1957',
// 'place tea bags in hot water',
// 'Solar panels work fine in overcast conditions',
// 'while the therapist watches',
// 'All right relax',
// `If you notice swelling`,
// `and whisk to fully incorporate`,
// 'gourmet burgers back home in LA',
// `Going shopping alone`,
// 'SO FREAKING GOOD!',
// 'consider becoming a member',
// 'would not work right.',
// 'doing a holiday card together',
// `when the killer strikes`,
// `Your refusal may cause hurt and disappointment`,
// 'Carpenter\'s one year of coaching',
// `Holly objects to Nia's character`,
// ' visa & travel assistance',
// 'Let the dishwasher run for an entire cycle',
// 'by encouraging carpooling',
// 'Ohio beaver trapping season starts in late December ',
// 'We Personally Guarantee Everything We Sell',
// 'we personally guarantee',
// // 'unless we win',
// // 'and we offer',
// "method for measuring",
// "responsibility for setting",
// "Attack and resolve your issues",
// 'Co-accused denied bail',
// 'they are stored unshelled in silos',
// 'the liver is found associated with the kidneys',
// 'over-joyous',
// 'must-see movie',
// 'some coarsely-ground peanut fragments included',
// 'food scientists working in the US',
// 'helping prepare',
// 'selecting paste',
// 'bringing hope',
// 'getting time off',
// 'for being born',
// 'fans that are blowing feel amazing',
// 'recognizing written language',
// 'a process of milling roasted peanuts',
// 'my racing snail',
// 'a nearly overpowering feeling',
// 'and so requires stirring',
// 'a nearly overpowering feeling',
// ' whilst being rocked to permit even roasting.',
// '300 gang-related',
// '5 must-try burgers',
// 'vacuum-sealed',
// 'raise standards of living',
// 'sources of saturated and monounsaturated fats',
// `I'm practising walking`,
// 'going to stop posting schedules',
// `Sports awards to be given on Tuesday`
'A/B tester',
'I watched the Twelve Days of Christmas',
`how tasty something looks and ask if they have tried it.`,
`besides the larger chains, Fairley's adds considerable value`,
// "5. The signatories to this Declaration",
]
nlp.verbose('tagger')
let str = arr[0]
nlp(str).debug()