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

Should multiple <lowercase> evaluate to {lowercase}<star>{/lowecase} and {lowercase}<star2>{/lowecase}? #152

Open
johnnymast opened this issue Feb 13, 2022 · 2 comments

Comments

@johnnymast
Copy link

Hi!,

You know me of course, i was writing a test for the tag. As its an alias of {lowercase}{/lowercase} should an other instance of in a reponse not be an alias of {lowercase}{/lowercase}?

Speak with you soon,

Johnny

@johnnymast
Copy link
Author

johnnymast commented Feb 13, 2022

PS: This is currently not the case on play.rivescript.com. That's why I am asking I was implementing that and double-checking my test on play.. But it only references so the first *. And how then about the other aliases like and (maybe i forget 1 or 2).

@kirsle
Copy link
Member

kirsle commented Feb 14, 2022

Hey @johnnymast

The shortcut tags like <uppercase>, <lowercase>, <formal> and <sentence> only translate to affecting the <star1> tag, for the very niche use cases of simple triggers like:

+ my name is *
- <set name=<formal>>Nice to meet you, <get name>.

I could consider an extension to the language to add numbers to these tags to specify which stars, like <uppercase1> thru <uppercase9> (stars 1-9 are officially documented but some/most implementations may support arbitrary numbers of stars beyond just 9, I'm not sure off hand which do), but as currently defined it's only a shortcut for <star1>

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

2 participants