Upstream spencermountain/compromise state of the touched files before a2f78f6e79
This commit is contained in:
1 parent
1b935cb309
commit
fc63a2350d
3 files changed
+222
No files matched your search
@@ -0,0 +1,88 @@
|
||||
export default [
|
||||
// ==== Ambiguous numbers ====
|
||||
// one [second]
|
||||
{ match: `#Cardinal [second]`, group: 0, tag: 'Unit', reason: 'one-second' },
|
||||
// with [a] hundred jobs
|
||||
{
|
||||
match: '!once? [(a|an)] hundred',
|
||||
group: 0,
|
||||
tag: 'Value',
|
||||
reason: 'a-hundred',
|
||||
},
|
||||
// with [a] thousand jobs
|
||||
{
|
||||
match: '!once? [(a|an)] thousand',
|
||||
group: 0,
|
||||
tag: 'Value',
|
||||
reason: 'a-thousand',
|
||||
},
|
||||
// with [a] million jobs
|
||||
{
|
||||
match: '!once? [(a|an)] million',
|
||||
group: 0,
|
||||
tag: 'Value',
|
||||
reason: 'a-million',
|
||||
},
|
||||
// with [a] billion jobs
|
||||
{
|
||||
match: '!once? [(a|an)] billion',
|
||||
group: 0,
|
||||
tag: 'Value',
|
||||
reason: 'a-billion',
|
||||
},
|
||||
// with [a] trillion jobs
|
||||
{
|
||||
match: '!once? [(a|an)] trillion',
|
||||
group: 0,
|
||||
tag: 'Value',
|
||||
reason: 'a-trillion',
|
||||
},
|
||||
// ==== PhoneNumber ====
|
||||
// 1 800 555-1234
|
||||
{ match: '(1|+1) #Value #PhoneNumber', tag: 'PhoneNumber', reason: 'country-code' },
|
||||
// (454) 232-9873
|
||||
{ match: '#NumericValue #PhoneNumber', tag: 'PhoneNumber', reason: 'area-code' },
|
||||
|
||||
// ==== Currency ====
|
||||
// chinese yuan
|
||||
{ match: '#Demonym #Currency', tag: 'Currency', reason: 'demonym-curr' },
|
||||
// ten [bucks]
|
||||
{ match: '#Value [(buck|bucks|grand)]', group: 0, tag: 'Currency', reason: 'value-bucks' },
|
||||
// ==== Money ====
|
||||
// [5] dollars
|
||||
{ match: '[#Value+] #Currency', group: 0, tag: 'Money', reason: 'value-curr' },
|
||||
|
||||
// ==== Ordinal ====
|
||||
// [second] dog
|
||||
{ match: '[second] #Noun', group: 0, tag: 'Ordinal', reason: 'second-noun' },
|
||||
|
||||
// ==== Units ====
|
||||
// 5 [dollars]
|
||||
{ match: '#Value+ [#Currency]', group: 0, tag: 'Unit', reason: 'curr-unit' },
|
||||
// 5 [feet]
|
||||
{ match: '#Value [(foot|feet)]', group: 0, tag: 'Unit', reason: 'foot-unit' },
|
||||
// 500 fifth [ave]
|
||||
{ match: '#Value [#Abbreviation]', group: 0, tag: 'Unit', reason: 'value-abbr' },
|
||||
// 5 [k]
|
||||
{ match: '#Value [k]', group: 0, tag: 'Unit', reason: 'value-k' },
|
||||
// kilometers an hour
|
||||
{ match: '#Unit an hour', tag: 'Unit', reason: 'unit-an-hour' },
|
||||
|
||||
// ==== Magnitudes ====
|
||||
// minus 7
|
||||
{ match: '(minus|negative) #Value', tag: 'Value', reason: 'minus-value' },
|
||||
// seven point five
|
||||
{ match: '#Value (point|decimal) #Value', tag: 'Value', reason: 'decimal-point' },
|
||||
// a [half] second
|
||||
{ match: '#Determiner [(half|quarter)] #Ordinal', group: 0, tag: 'Value', reason: 'half-ord' },
|
||||
// thousand and two
|
||||
{ match: `#Multiple+ and #Value`, tag: 'Value', reason: 'mag-and-value' },
|
||||
// 5 miles [per hour]
|
||||
{ match: '#Value #Unit [(per|an) (hr|hour|sec|second|min|minute)]', group: 0, tag: 'Unit', reason: 'unit-per-dur' },
|
||||
// 5 [square] miles
|
||||
{ match: '#Value [(square|cubic)] #Unit', group: 0, tag: 'Unit', reason: 'square-miles' },
|
||||
// twelve percent
|
||||
{ match: '#Cardinal percent', tag: '#Percent #Unit', reason: 'value-percent' },
|
||||
// 5 [gb]
|
||||
{ match: '#Value [(gb|pa|ft|foot|feet|m)]', group: 0, tag: 'Unit', reason: 'ambig-unit' },
|
||||
]
|
||||
Reference in new issue
Block a user