Package amadeus.perception
package amadeus.perception
Provides utilities for parsing and converting user input into executable commands and structured data.
This package includes classes that handle the interpretation of user input, such as commands, dates, and numbers. These utilities are essential for translating natural language input into actionable tasks and structured data that the application can process.
Key Classes
Parser: Parses user input into executableCommandobjects.DateConverter: Converts date and time strings intoLocalDateorLocalDateTimeobjects.NumberConverter: Converts number words (e.g., "twenty-one") into their numeric equivalents.
Usage Example
// Parse user input into a command
Command command = Parser.parse("todo Buy groceries");
command.execute();
// Convert a date string into a LocalDate object
Object date = DateConverter.parseDate("2/12/2019");
// Convert a number word into an integer
int number = NumberConverter.wordToNumber("twenty-one");
- See Also:
-
ClassesClassDescriptionA utility class for parsing and formatting dates and date-times.A utility class for converting written number words into their numeric equivalents.Handles the parsing of user input into executable commands.