-
Notifications
You must be signed in to change notification settings - Fork 101
/
atomic.yml
49 lines (43 loc) · 1.13 KB
/
atomic.yml
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
rules:
# month names
- name: month-name-1
label: PossibleMonth
priority: ${ rulepriority }
type: token
pattern: |
[entity=/B-MONTH/] [entity=/I-MONTH/]*
# measurement units, from the MEASUREMENT-UNIT lexicon
- name: measurement-unit
label: MeasurementUnit
priority: ${ rulepriority }
type: token
pattern: |
[entity=/B-MEASUREMENT-UNIT/ & !word = "DS"] [entity=/I-MEASUREMENT-UNIT/]*
# possible years, from 1ddd to 20dd
- name: year
label: PossibleYear
priority: ${ rulepriority }
type: token
pattern: |
[word=/^(1\d\d\d|20\d\d)$/]
# possible day values, from 1 to 31
- name: day
label: PossibleDay
priority: ${ rulepriority }
type: token
pattern: |
[word=/^([1-9]|1\d|2\d|3[01])(st|nd|rd|th)?$/]
# possible season
- name: season-name
label: PossibleSeason
priority: ${ rulepriority }
type: token
pattern: |
[entity=/B-SEASON/] [entity=/I-SEASON/]*
# possible holiday
- name: holiday-name
label: Holiday
priority: ${ rulepriority }
type: token
pattern: |
[entity=/B-HOLIDAY/] [entity=/I-HOLIDAY/]*