summaryrefslogtreecommitdiff
path: root/data/sample-grammars/address.gram
blob: 3e432d599289a8ab9bbdc0ae869de6d0a47b1c86 (plain)
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
[us-postal-address] [street-address]

pragma initial-rule [us-postal-address]

[address-prefix] [address-prefix-body] ,

[address-prefix-suffix] mail at
	contact at
	visit us at
	located at

pragma suffix-with [address-prefix] [address-prefix-suffix]

[address-prefix-prefix] [full-name]
	[full-name-and-title]
	[person]

[address-prefix-body] [address-prefix-prefix]
	[address-prefix-prefix]
	[company]

[city-post-zip] , [city] , [us-postalstate] [zipcode]

pragma prefix-with [us-postal-address] [address-prefix]
pragma suffix-with [us-postal-address] [city-post-zip]

[com-company] , [company]
	, [work-type] [company]

[work-type] works for
	works at
	works with
	contractor for
	president of
	interning at

pragma suffix-with [address-prefix-prefix] [com-company]

[street-address] [medium-number] [street]
	p.o. box [medium-number]
	[medium-number] [street] , apartment [small-number] [letter]
	route [digit] box [medium-number]
	[small-number] [street]

pragma export-rule [street-address]

[street] [tree]
	[color] [tree]
 	[last-name]
 	[first-name]
	route [small-number]
 	route [small-number]
	county road [small-number]
 	[ordinal] street
	[ordinal] ave.
	[ordinal-number] st.
	[ordinal-number] ave.
	[letter] st.
	[city]
	[us-state]
	[canada-province]
	[nation]
	[full-name]
 	[street-generic-standalone]
	[street-generic]
	[us-president]
	[us-president-common]

pragma prefix-with [street] [street-prefix]
pragma suffix-with [street] [street-suffix]

[street-prefix] n.
	s.
	e.
	w.
	<^2> [cardinal]

[street-suffix] [%street|%st.]
	[%road|%rd.]
	way
	[%boulevard|%blvd.]
	[%avenue|%ave.]
	place
	plaza
	court
	drive
	[%highway|%hwy.]
	[%parkway|%pkwy.]
	pike
	bypass

[street-generic] <^2> main
	high
	independence
	division
	center
	m. l. king
	Washington
	Lincoln
	college
	university
	stadium
	riverside
	water
	park
	shore
	airport
	grand
	sunset
	telegraph
	railroad
	El Paseo
	market
	church
	mill
	highland
	woodland
	Hillcrest
	Lakeview
	central
	[geographic-thing]

[street-generic-standalone] Broadway
	Avenue of the Americas
	Kingshighway
	El Camino real