date_time_parser 0.1.0

Rust NLP library for parsing English natural language into dates and times
Documentation
1
2
3
4
5
6
7
8
/// An interface for dealing with parsing unstructured text. Implement this trait for your abstract syntax when parsing.
pub trait Recognizable: Sized {
    /// Takes unstructed text, and returns an instance of the abstract syntax if a match is found.
    fn recognize(text: &str) -> Option<Self>;

    /// Returns a string to describe the abstract syntax.
    fn describe() -> &'static str;
}