Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addition of data types to command variables #289

Open
gPats opened this issue Jun 7, 2017 · 0 comments
Open

addition of data types to command variables #289

gPats opened this issue Jun 7, 2017 · 0 comments

Comments

@gPats
Copy link

gPats commented Jun 7, 2017

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);}
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant