Creates a parser from a URL to a grammar file.
Creates a parser from a URL to a grammar file.
The URL of a grammar file, in SynchronousGrammar.fromString format. If not specified, the default English grammar on the classpath is used. Note that if another grammar is specified, it may be necessary to override the tokenize method.
A function that splits a string into tokens. The default tokenizer is appropriate for the default English grammar. Other languages may require alternate tokenizers.
Tries to parse a source string into a single Temporal object.
Try to parse a source string into possible Temporal objects.
Try to parse a source string into possible Temporal objects.
The input string in the source language.
The anchor time (required for resolving relative times like "today").
A sequence of Temporal objects representing the possible parses. The sequence is sorted by a heuristic that tries to put the most promising parses first.
A parser for natural language expressions of time, based on a synchronous context free grammar. Typical usage: