Expand description
Grammar for a simple English parser
english_parser module contains rules to parse words, numbers,
punctuation, sentences and whole tetx in English.
Functions§
- capital_
word capital_wordmatches a word that starts with a capital letter.- date
datematches dates in the format dd/mm/yyyy.- end_
punctuation end_punctuationmatches sentence-ending punctuation.- hour
hourmatches times in the format hh:mm (am|pm).- number
numbermatches a sequence of numeric characters.- other_
punctuation - sentence
sentencematches a sequence of words, numbers and other punctuation ending with sentence-ending punctuation.- text
textmatches a series of sentences, separated by whitespace.- whitespace
whitespacematches any whitespace character.- word
wordmatches a word, which is a sequence of alphabetic characters with optinal symbols - and ’