compromise
Version:
modest natural language processing
49 lines (47 loc) • 2.03 kB
JavaScript
// Gerund-Adjectives - 'amusing, annoying'
export default [
//a staggering cost
// { match: '(a|an) [#Gerund]', group: 0, tag: 'Adjective', reason: 'a|an' },
//as amusing as
{ match: 'as [#Gerund] as', group: 0, tag: 'Adjective', reason: 'as-gerund-as' },
// more amusing than
{ match: 'more [#Gerund] than', group: 0, tag: 'Adjective', reason: 'more-gerund-than' },
// very amusing
{ match: '(so|very|extremely) [#Gerund]', group: 0, tag: 'Adjective', reason: 'so-gerund' },
// found it amusing
{ match: '(found|found) it #Adverb? [#Gerund]', group: 0, tag: 'Adjective', reason: 'found-it-gerund' },
// a bit amusing
{ match: 'a (little|bit|wee) bit? [#Gerund]', group: 0, tag: 'Adjective', reason: 'a-bit-gerund' },
// looking annoying
{
match: '#Gerund [#Gerund]',
group: 0,
tag: 'Adjective',
notIf: '(impersonating|practicing|considering|assuming)',
reason: 'looking-annoying',
},
// looked amazing
{
match: '(looked|look|looks) #Adverb? [%Adj|Gerund%]',
group: 0,
tag: 'Adjective',
notIf: '(impersonating|practicing|considering|assuming)',
reason: 'looked-amazing',
},
// were really amazing
// { match: '(looked|look|looks) #Adverb [%Adj|Gerund%]', group: 0, tag: 'Adjective', notIf: '(impersonating|practicing|considering|assuming)', reason: 'looked-amazing' },
// developing a
{ match: '[%Adj|Gerund%] #Determiner', group: 0, tag: 'Gerund', reason: 'developing-a' },
// world's leading manufacturer
{ match: '#Possessive [%Adj|Gerund%] #Noun', group: 0, tag: 'Adjective', reason: 'leading-manufacturer' },
// meaning alluring
{ match: '%Noun|Gerund% %Adj|Gerund%', tag: 'Gerund #Adjective', reason: 'meaning-alluring' },
// face shocking revelations
{
match: '(face|embrace|reveal|stop|start|resume) %Adj|Gerund%',
tag: '#PresentTense #Adjective',
reason: 'face-shocking',
},
// are enduring symbols
{ match: '(are|were) [%Adj|Gerund%] #Plural', group: 0, tag: 'Adjective', reason: 'are-enduring-symbols' },
]