# file: $ISIP_BASE/app/communicator/kb/Grammar/query_address.gra
# version: $Id: query_address.gra 9945 2005-02-11 20:22:11Z elliott $

###### Drive Domain Specific Rules #############
[Query_Address]
	([_query_where])
	([_query_isthere])
	([_query_isitat])
	([_query_isonway])
;

[query_address]
	([Query_Address] *[City_Name] FAR)
	(*[what_way] [Query_Address] [Arrive_Loc] VICINITY)
	([Query_Address] [Arrive_Loc] are there *[vicinity])
	([Query_Address] [Arrive_Loc] [is] THERE *[on] *[City_Name])
	([Query_Address] *[what_address])
	([Query_Address] *+[some_place])
VICINITY
	(*[vicinity] *[on] *[City_Name])
THERE
	(there)
	([available])
FAR
	([Arrive_Loc] *[Arrive_Near])
;

[_query_isthere]
#A - SAMPLE UTTERANCES COVERED BY THE FOLLOWING GRAMMAR
#1- is there a barbecue restaurant in ms state
#2- can i find a barbecue restaurant on hwy 25
#3- can you please locate mcdonald's on hwy 82 for me
#4- can i have the address of walmart near hwy 25
	(CAN there *ANYTHING)
	(CAN [i] *please [get] ADDRESS)
ADDRESS
	(*[me] *[get])
	(*[the] [an_address] *[of])
ANYTHING
	(be *[the])
	([any] *to *do *[of])
CAN
	([is])
	([isnot])
	([can])
	([cannot])
FAR
	([Arrive_Loc] *[Arrive_Near])
;

[_query_isonway]
#B - SAMPLE UTTERANCES COVERED BY THE FOLLOWING GRAMMAR
#1- i will go from airport to kroger, where can i get some gasoline
#2- i need gas, where on my way from the hunter henry center to the hampton hotel can i get gasoline for my car
#3- i want gas for my car, where can i get it on the way from erc to walmart
	([depart_arrive] WHERE *CAN *[i] *[go] *to GET_GO FAR1)
	(SOME_PLACE *WHERE_ON [depart_arrive] *WHERE CAN_I FAR1)
	(*I *CAN WANT FAR1 *+[some_place] *WHERE CAN_I [depart_arrive])

WANT
	([want])
	([wants])
SOME_PLACE
	(*[i] *[want] [some_place])
	([of] [its] [some_place])
GET_GO
	([get])
	([go])
CAN_I
	(*CAN *[i] [get] *[the] *[on] *[the] *[direction])
WHERE
	([how] *to)
	([whats] *to)
WHERE_ON
	(*[i] *[want] *[the] *FAR where [on] [the] [direction])
	(if [i] [go])
	([i] CAN [go])
I
	([i])
	([i_m])
CAN
	([is])
	([can])
NEAR
	([Depart_Loc] *[Depart_Near])
FAR
	([Arrive_Loc] *[Arrive_Near])
FAR1
	(*[the] [Arrive_First])
;

[_query_isitat]
#C- SAMPLE UTTERANCES COVERED BY THE FOLLOWING GRAMMAR
#1- is tcby on russell street
#2- is the cotton district grill on maxwell street or on nash
#3- is the court house in the downtown area of starkville
#4- can mcdonald's be on hwy 82
#5- is the ece located in simrall
#6- tcby, is it on russel street
	([is] FAR *located ON FAR1 *or *ON *FAR2 *or *ON *FAR3)
	(FAR [is] [that] *located ON FAR1 *or *ON *FAR2 *or *ON *FAR3)
	(*I_WOULD *CAN *[i] HAVE *[the] FAR *[i] *[suggest] [on] FAR1)
ON
	(on)
	(in)
	(at)
HAVE
	(have)
	([suggest])
I_WOULD
	(*I *CAN [want] *to *[go] *out *to [entertain])
	(*I *CAN [want] *to *[go] *out *[of] *[doing_things])
	(*I *CAN [want] *to *[go] *out to [eat])
CAN
	([is])
	([can])
I
	([i])
	(i_m])
FAR
	([Arrive_Loc])
FAR1
	([Arrive_First])
FAR2
	([Arrive_Second])
FAR3
	([Arrive_Third])
;

[_query_where]
#D- SAMPLE UTTERANCES COVERED BY THE FOLLOWING GRAMMAR
#1- i am interested in finding the address of walmart near kroger
#2- tell me the address of walmart near kroger
#3- can you find me the address of walmart near hwy 25
#4- where is the nearest walmart near kroger
#5- where is this Veranda near city bagel
#6- what is the address of simrall engineering building
#7- where is academy road
#8- where is bancorpsouth located near richey's restaurant
#9- the address for walmart near hwy 25
#10- we want get the address of walmart 
#11- how about the location of erc
	(*[i] [want] *to *FIND_IT *[the] [an_address] [of])
	(*[i] CAN GET_GO *to FAR)
	(*[is] *there *[the] [an_address] 
	(*+[some_place] [whats] *[the] *[an_address] *[of])
	(*+[some_place] where [is] *[the] *[spec_way] FAR)

#E- SAMPLE UTTERANCES COVERED BY THE FOLLOWING GRAMMAR
#1- where can mcdonald's be located on hwy 82
#2- at what location can mcdonald's on hwy 82 be located
#3- which room is dr john doe located in hilbun hall
	(WHERE CAN [i] *please [get] FAR)
	(WHERE CAN FAR be LOCATED)
	([whats] PLACE [is] FAR HAS [on] FAR1)

#F- SAMPLE UTTERANCES COVERED BY THE FOLLOWING GRAMMAR
#1- where should i go to find walmart near kroger
#2- to what location should i go to get walmart near kroger
        (WHERE CAN [i] HEADED *to GET_GO)

#G- SAMPLE UTTERANCES COVERED BY THE FOLLOWING GRAMMAR
#1- i need to talk with someone in human resources department, show me the direction
	(ON FAR TELLME)

ON
	(in)
	(on)
	(at)
PLACE
	(place)
	(room *number)
	(office *number)
	(section *number)
	(spot)
HAS
	([own])
	(located)
	(placed)
TELLME
	([what_way])
	([what_address])
FIND_IT
	([get])
	([know])
LOCATED
	(located)
	([Arrive_Near])
WHERE
	(where)
	(*[on] what [an_address])
HEADED
	(go)
	(be going)
	(be headed)
	(be heading)
	(GET_GO)
GET_GO
	([get])
	([go])

CAN
	([can])
	([is])
FIND_IT
	([get])
	([know])
FAR
	([Arrive_Loc] *[Arrive_Near])
FAR1
	([Arrive_First])
NEAR
	([Depart_Loc] *[Depart_Near])
;

#I- SOME AUXILIARY UTTERANCES THAT MAY FOLLOW REAL UTTERANCES
#1- give me the address
#2- where should i go
#3- what is the location
#4- where can i find it
#5- can you show me where it is located
#6- where is it
[what_address]
	(*PLEASE SHOW *[me] *[the] [an_address])
	(WHERE CAN [i] *GET_GO *to *GET_GO *IT)
	([whats] IT *PLEASE)
	(*PLEASE SHOW *[me] WHERE *IT *[is] *located)
SHOW
	([get])
	([show])
	([tell])
	(is there)
IT
	([the])
	(*[the] [an_address])
	([its] [an_address])
WHERE
	([how])
	(where)
	([of] [that] [an_address])
PLEASE
	(*CAN *[i] *please)
CAN
	([is])
	([can])
GET_GO
	([get])
	([go])
	(be going)
	(be headed)
	(be heading)
;

[i]
	(i)
	(we)
	(you)
	(he)
	(she)
	(they)
;

[can]
	(can)
	(could)
	(may)
	(might)
	(will)
	(would)
	(should)
	(ought to)
	(must)
	(shall)
;

[cannot]
	(cannot)
	(can not)
	(can't)
	(could not)
	(couldn't)
	(may not)
	(might not)
	(will not)
	(won't)
	(would not)
	(wouldn't)
	(should not)
	(shouldn't)
	(must not)
	(shall not)
;

[isnot]
	(am not)
	(is not)
	(isn't)
	(are not)
	(aren't)
	(were)
	(was)
	(do not)
	(don't)
	(does not)
	(doesn't)
	(did not)
	(didn't)
	(have not)
	(haven't)
	(has not)
	(hasn't)
;

[is]
	(am)
	(is)
	(are)
	(were)
	(was)
	(do)
	(does)
	(did)
	(have)
	(has)
;

[an_address]
	(address)
	(location)
	(locations)
	(place)
	(places)
	(region)
	(regions)
	(area)
	(areas)
;

[any]
	(any)
	(anything)
	(some)
	(something)
;

[the]
	(the)
	([that])
	(a)
	(an)
	([any])
	(one)
	(ones)
	([its])
;

[that]
	(that)
	(this)
	(these)
	(those)
	(it)
;

[me]
	(me)
	(us)
	(him)
	(her)
	(them)
;

[my]
	(my)
	(our)
	(his)
	(her)
	(their)
;

[its]
	(its)
	(our)
	(their)
	(your)
	(my)
;

[how]
	(how)
	(what)
;

[next]
	(next)
	(then)
	(after that)
	(from there)
;

[whats]
	(what's)
	(what *[is])
	(which *[is])
	(where is)
	(where's)
	(where *are)
	(where're)
;

[of]
	(of)
	(for)
	(about)
	(to)
	(on)
;

[buy]
	(buy)
	(purchase)
;

[get]
	(get)
	(give)
	(list)
	(find)
	(help)
	(have)
	(locate)
;

[gets]
	(gets)
	(gives)
	(lists)
	(finds)
	(helps)
	(has)
	(locates)
;

[take]
	(take)
	(lead)
	(direct)
;

[takes]
	(takes)
	(leads)
	(directs)
;

[show]
	(show)
	(chart)
	(illustrate)
	(highlight)
	(depict)
	(display)
	(print)
	(list)
;

[shows]
	(shows)
	(charts)
	(illustrates)
	(highlights)
	(depicts)
	(displays)
	(prints)
	(lists)
;

[know]
	(know)
	(be aware of)
	(acknowledge)
;

[knows]
	(knows)
	(acknowledges)
;

[tell]
	(tell)
	(say)
	(express)
	(define)
;

[tells]
	(tells)
	(says)
	(expresses)
	(defines)
;

[want]
	(want)
	(need)
	(would like)
	(like)
	(wish)
	(desire)
	(hope)
	(seek)
	(request)
	(prefer)
	(expect)
;

[wants]
	(wants)
	(needs)
	(likes)
	(wishes)
	(desires)
	(hopes)
	(seeks)
	(requests)
	(prefers)
	(expects)
;

[suggest]
	(suggest)
	(recommend)
	(advice)
	(help)
;

[entertain]
	(*[get] *[the] fun)
	(*[get] *[the] good time)
	(*[get] *[the] joy)
	(*[get] *[the] enjoyment)
	(*[get] *[the] entertainment)
	(*[the] entertain)
	(*[the] enjoy life)
;

[suggests]
	(suggests)
	(recommends)
	(advices)
	(helps)
;

[suggestion]
	(suggestion)
	(suggestions)
	(recommendation)
	(recommendations)
	(advice)
	(advices)
	(help)
;

[think]
	(think)
	(suppose)
	(assume)
	(believe)
;

[thinks]
	(thinks)
	(supposes)
	(assumes)
	(believes)
;

[see]
	(see)
	(take a look)
;

[sees]
	(sees)
	(takes a look)
;

[go]
	(go)
	(drive)
	(walk)
	(reach)
	(visit)
	(arrive)
	(drop by)
;

[goes]
	(goes)
	(drives)
	(walks)
	(reaches)
	(visits)
	(arrives)
	(drops by)
;

[use]
	(use)
	(take advantage *[of])
	(utilize)
	(make use *[of])
	(look for usability *[of])
;

[eat]
	(eat)
	(have meal)
	(*do supper)
	(*do dine)
	(*do lunch)
	(*do dinner)
;

[change]
	(change)
	(shift)
	(divert)
;

[changes]
	(changes)
	(shifts)
	(diverts)
;

[leave]
	(leave)
	(depart)
;

[leaves]
	(leaves)
	(departs)
;

[estimate]
	(estimate)
	(predict)
	(*make *[the] guess)
;

[estimates]
	(estimates)
	(predicts)
	(*makes *[the] guesses)
;

[own]
	(own)
	(has)
	(have)
;

[available]
	(available)
	(present)
	(ready to use)
	(usable)
;

[really]
	(really)
	(actually)
	(indeed)
	(effectively)
	(locally)
;

[far]
	(far)
	(close)
	(long)
;

[vicinity]
	(*be *located VICINITY)
	([which] [is] VICINITY)
VICINITY	
	(nearby)
	(around *here)
	(within walking distance *[of] *here)
	(in the neighborhood *[of])
	(close *to)
	(close from)
	(*located near *to)
	(adjacent *to)
	(adjacency [of])
	(in *[the] vicinity [of])
	(outside)
	(off)
	([on] *[the] local [an_address])
	(in)
	(on)
	(at)
;

[once]
	(once)
	(when)
	(if)
;

[on]
	(in)
	(on)
	(at)
	(around)
	(within)
	(with)
	([of])
	(from)
	(to)
	(onto)
;

[i_m]
	(i'm)
	(i'll)
	(i'd)
	(we're)
	(you're)
	(he's)
	(she's)
;

[which]
	(that)
	(which)
;

[doing_things]
	(going)
	(doing)
	(using)
	(moving)
	(jumping)
	(getting)
	(taking)
	(making)
	(driving)
	(eating)
	(finding)
	(supposing)
	(guessing)
	(assuming)
	(holding)
	(pushing)
	(starting)
	(stopping)
	(pausing)
	(*mountain climbing)
	(*sight seeing)
	(looking *for)
	(swimming)
	(shopping)
	(walking)
	(jogging)
	(having fun)
	(dining)
	(talking *with *people)
	(chatting *with *people)
	(fooling around)
	(finding)
	(leaving)
	(departing)
	(arriving)
	(DRINKING)
	(WRITING)
	(READING)
	(TOURING)
	(digging)
	(mentoring)
	(tutoring)
	(teaching)
	(including)
	(*seminar presentation)
TOURING
	(*bicycle touring)
	(motorcycle touring)
	(sport touring)
DRINKING
	(drinking *beer)
	(drinking champagne)
	(drinking wine)
READING
	(reading *comic *book)
	(reading *comic books)
	(reading *[the] novel)
	(reading *[the] novels)
WRITING
	(*book writing)
	(paper writing)
	(tutorial writing)
;

[things_from_address]
	([motor_vehicles])
	([i])
	([can])
	([cannot])
	([isnot])
	([is])
	([an_address])
	([any])
	([the])
	([that])
	([me])
	([my])
	([its])
	([how])
	([next])
	([whats])
	([of])
	([buy])
	([get])
	([gets])
	([take])
	([takes])
	([show])
	([shows])
	([know])
	([knows])
	([tell])
	([tells])
	([want])
	([wants])
	([suggest])
	([entertain])
	([suggests])
	([suggestion])
	([think])
	([thinks])
	([see])
	([sees])
	([go])
	([goes])
	([use])
	([eat])
	([change])
	([changes])
	([leave])
	([leaves])
	([estimate])
	([estimates])
	([own])
	([available])
	([really])
	([doing_things])
	([which])
	([i_m])
	([on])
	([once])
	([vicinity])
	([far])
;

[motor_vehicles]
	(car)
	(van)
	(truck)
	(rv)
	(bus)
	(motorcycle)
	(caravan)
;
