rule-bases.rules_en.db Maven / Gradle / Ivy
SQLite format 3 @ ?
h ? ?8???? h ? N%mindexrl3patRULES_LEVEL3CREATE INDEX rl3pat ON RULES_LEVEL3(pattern ASC)N%mindexrl2patRULES_LEVEL2CREATE INDEX rl2pat ON RULES_LEVEL2(pattern ASC)?%%?mtableRULES_LEVEL3RULES_LEVEL3CREATE TABLE RULES_LEVEL3 (id INTEGER PRIMARY KEY, pattern TEXT, rule_type TEXT, rule TEXT, rule_condition TEXT)?%%?mtableRULES_LEVEL2RULES_LEVEL2CREATE TABLE RULES_LEVEL2 (id INTEGER PRIMARY KEY, pattern TEXT, rule_type TEXT, rule TEXT, rule_condition TEXT) ) m%%?tableRULES_LEVEL1RULES_LEVEL1CREATE TABLE RULES_LEVEL1 (id, pattern, rule_type, rule, rule_condition) ? ???? A .
c
? N#? ???{? > --= christmas c_cardimplicit_deicticTO_YEAR(PAT(1));"-12-25"> == christmas c_tunit c_cardexplicitTO_YEAR(PAT(2));"-12-25"W C W E 9 3-- valentine s c_tunitimplicit_deicticDCTYEAR;"-02-14"7 -? year-endimplicit_deicticADD(DCT,year,-1);"-12-31"; --'year-endimplicit_deicticDCTYEAR;"-12-31"tense==futureA $ x ) E 3--%the end the c_tunitimplicit_deicticDCTYEAR;"-12-31"PAT(3)==yearL 3-9'the end the c_tunitimplicit_deicticADD(DCT,month,0);"-30"PAT(3)==month/ -- christmasimplicit_deicticDCTYEAR;"-12-25"?
7 /-- christmas c_tunitimplicit_deicticDCTYEAR;"-12-25" ; < )-= next christmasimplicit_deicticADD(DCT,year,1);"-12-25"
A ?u 8 1-- san fermin c_tunitimplicit_deicticDCTYEAR;"-07-07" 4 C 3-''intercalary c_tunitimplicit_deicticDCTYEAR;"-02"PAT(1)==monthD 3--#intercalary c_tunitimplicit_deicticDCTYEAR;"-02-29"PAT(1)==day
C
???-???W?o 3the end the c_tunit=christmas c_tunit c_card/christmas c_tunit| 3valentine s c_tunityear-end? year-end -christmas c_card)next christmas
christmas3the end the c_tunit
? ? ??? 1san fermin c_tunit 3intercalary c_tunit3intercalary c_tunit
3 ?u2???=??q ? ? 3 d=-s
101c_relative_ord c_weekdayimplicit_deicticADD_WEEKDAY(SUBPAT(0,"_",1),PAT(1),SUBPAT(0,"_",2))<3-/
52next c_tunit-deleteimplicit_deicticADD(DCT,PAT(1),1)=
3-1
51last c_tunit-deleteimplicit_deicticADD(DCT,PAT(1),-1)Y9-c
50c_relative_ord c_tunitimplicit_deicticADD(SUBPAT(0,"_",1),PAT(1),SUBPAT(0,"_",2)).;
21c_tunitdurative"P";TO_PERIOD(1,PAT(0)):
)E
20c_card c_tunitdurative"P";TO_PERIOD(PAT(0),PAT(1))? )1+19c_card c_tunitexplicitTO_CENTURY(PAT(0))PAT(1)==century'
12nowvague"PRESENT_REF"M1-S
10c_card c_tunit agoimplicit_deicticADD(DCT,PAT(1),NEGATIVEINT(PAT(0)))H-]
7c_deicticimplicit_deicticADD(DCT,SUBPAT(0,"_",0),SUBPAT(0,"_",1))$+
5c_cardexplicitTO_YEAR(PAT(0))4-9
4c_monthimplicit_deicticDATE_MONTH(DCT,PAT(0))A)U
3c_month c_cardexplicitTO_YEAR(PAT(1));"-";TO_MONTH(PAT(0))O)-O2c_month c_cardimplicit_deicticDATE_MONTH_DAY(DCT,PAT(0),PAT(1))PAT(1)<328-=
1c_weekdayimplicit_deicticDATE_WEEKDAY(DCT,PAT(0))
0 ?n???w??4 ? v R 0 !
114recentlyvague"PAST_REF""!!
113previouslyvague"PAST_REF"]7{
112c_month c_card c_cardexplicitTO_YEAR(PAT(2));"-";TO_MONTH(PAT(0));"-";TO_DAY(PAT(1))]7{
111c_card c_month c_cardexplicitTO_YEAR(PAT(2));"-";TO_MONTH(PAT(1));"-";TO_DAY(PAT(0))mE-}
110c_relative_ord c_time_of_dayimplicit_deicticADD(SUBPAT(0,"_",1),day,SUBPAT(0,"_",2));GET_TOD(PAT(1))Y;-_
109c_weekday c_time_of_dayimplicit_deicticDATE_WEEKDAY(DCT,PAT(0));GET_TOD(PAT(1));wS-k%108c_relative_ord c_time_of_day-deleteimplicit_deicticDCTYEAR;"-";DCTMONTH;"-";DCTDAY;GET_TOD(PAT(1))PAT(0)==thisE-W
107tonightimplicit_deicticDCTYEAR;"-";DCTMONTH;"-";DCTDAY;"TNI"!
106pastvague"PAST_REF" %
105futurevague"FUTURE_REF"n9-?
104c_relative_ord c_monthimplicit_deicticADD(SUBPAT(0,"_",1),year,SUBPAT(0,"_",2));"-";TO_MONTH(PAT(1))G7-?
103next c_weekday-deleteimplicit_deicticADD_WEEKDAY(DCT,PAT(1),7)G7-?
102this c_weekday-deleteimplicit_deicticADD_WEEKDAY(DCT,PAT(1),0)
* ?O ?_??* gJMa%160c_relative_ord c_weekday c_monthexplicitDATE_LAST_WEEKDAY_MONTH(DCT,PAT(1),PAT(2))PAT(0)==last^I=w
159c_card c_weekday c_monthexplicitDATE_WEEKNUM_WEEKDAY_MONTH(DCT,PAT(0),PAT(1),PAT(2));jHSa%158c_relative_ord c_weekday in c_monthexplicitDATE_LAST_WEEKDAY_MONTH(DCT,PAT(1),PAT(3))PAT(0)==lastaGCw
157c_card c_weekday in c_monthexplicitDATE_WEEKNUM_WEEKDAY_MONTH(DCT,PAT(0),PAT(1),PAT(3));@F3E
156c_card c_tunit termdurative"P";TO_PERIOD(PAT(0),PAT(1))E
155quarterlyset"P3M"-D3%
154as soon as possiblevague"FUTURE_REF"TC=-S
153c_card c_tunit or so agoimplicit_deicticADD(DCT,PAT(1),NEGATIVEINT(PAT(0)))YB;-_
152c_time_of_day c_weekdayimplicit_deicticDATE_WEEKDAY(DCT,PAT(1));GET_TOD(PAT(0));
P ??X#????R??O ? p P A%
151soonvague"FUTURE_REF":@--/
150the full c_tunitimplicit_deicticADD(DCT,PAT(2),0)X?91[
149c_card c_tunit earlierimplicit_anaphoricADD(REFTIME,PAT(1),NEGATIVEINT(PAT(0)))>
148timevague"PXX".=%/
147the c_decadeexplicitTO_DECADE(PAT(1)).<%/
146the c_card sexplicitTO_DECADE(PAT(1))*;/
145c_decadeexplicitTO_DECADE(PAT(0))*:/
144c_card sexplicitTO_DECADE(PAT(0))39''#143these c_tunitvague"PRESENT_REF"PAT(1)==dayD8/Q
142c_date c_time utcexplicitTO_ISO(PAT(0));"T";TO_TIME(PAT(1))@7'Q
141c_date c_timeexplicitTO_ISO(PAT(0));"T";TO_TIME(PAT(1))6!
140oncevague"PAST_REF"5!
139agovague"PAST_REF"4
138seasondurative"PXM"43!?
137c_card bceexplicit"BC";FILL_ZEROS(PAT(0),4)32?
136c_card bcexplicit"BC";FILL_ZEROS(PAT(0),4)*13
135c_timeexplicit"T";TO_TIME(PAT(0))%0)
134c_dateexplicitTO_ISO(PAT(0))S/!-[133the c_cardimplicit_deicticDCTYEAR;"-";DCTMONTH;"-";TO_DAY(PAT(1))PAT(1)<32
; ??z^@!?u=??g/ ? ? ; P.5-S
132c_card c_tunit todayimplicit_deicticADD(DCT,PAT(1),NEGATIVEINT(PAT(0)))P-?-I
131previous c_weekday-deleteimplicit_deicticADD_WEEKDAY(REFTIME,PAT(1),-7)N,1-S
130c_card c_tunit nowimplicit_deicticADD(DCT,PAT(1),NEGATIVEINT(PAT(0)))6+-9
129weekendimplicit_deicticADD(DCT,week,-1);"-WE"B*-7'128weekendimplicit_deicticADD(DCT,week,0);"-WE"tense==future)!
127recentvague"PAST_REF"5(#-/
126the c_tunitimplicit_deicticADD(DCT,PAT(1),0)9'+?
125several c_tunitdurative"P";TO_PERIOD("X",PAT(1))6&%?
124some c_tunitdurative"P";TO_PERIOD("X",PAT(1))5%#?
123few c_tunitdurative"P";TO_PERIOD("X",PAT(1))U$'-k
122c_time_of_dayimplicit_deicticDCTYEAR;"-";DCTMONTH;"-";DCTDAY;GET_TOD(PAT(0))#!
121weeklyset"XXXX-WXX""%
120dailyset"XXXX-XX-XX"!
119monthlyset"XXXX-XX"
118annuallyset"XXXX""'
117currentvague"PRESENT_REF"$'
116currentlyvague"PRESENT_REF":)-3
115c_card quarterimplicit_deicticDCTYEAR;"-Q";PAT(0)