concordia-library/tests/resources/puddle/test-rules.en.txt

16 lines
522 B
Plaintext
Raw Normal View History

2013-10-24 17:06:00 +02:00
Rule "test 17:00"
Match: [orth~"([012][0-9]|[1-9]):([0-6][0-9])"];
Eval: group(ne_TIME, 1);
Rule "test date"
Match: [orth~"(0?[1-9]|[012][0-9]|3[01])"] [orth~"jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec"/i] [orth~"[12][0-9][0-9][0-9]"];
Eval: group(ne_DATE, 1);
Rule "date: MONTH_NAME year"
Match: [type~"MONTH_NAME"] [orth~"(19[0-9][0-9]|2[01][0-9][0-9])"];
Eval: group(ne_DATE, 1);
Rule "street"
Match: [orth~"\d+"] [orth~","]? [orth~"[A-Z].*"]+ [orth~"(St|Rd|Street|Avenue|Lane)"];
Eval: group(ne_ADDRESS, 1);