-
Notifications
You must be signed in to change notification settings - Fork 1k
addition of data types to command variables #289
Copy link
Copy link
Open
Description
Hi
How about adding datatype keywords to command variables?
Currently I am working on data entry using Annyang, and I have a few set types of entries which I need to recognise.
For example, if I am just looking for a number, or a letter as a command variable, it should return just the number or letter.
I know we can do this using callback function and resultMatch, but ,if I am not wrong, the whole phrase recorded is passed to the callback function and not the individual command variable or splat.
The keywords could be something like this (char) , (int),(string),(num_as_string)//can be used for inputting numbers in words such as "five hundred and forty" instead of 540.
e.g:
var command = {
':(int)tag kg':function{document.write(tag);}
};
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels