This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
So basically it is just a way to detect if a text should show a or an.
Expression:
send "%a or an of {_text}% %{_text}%" #Would show a or an depending on the next text.
It would only work on texts (obviously). It would check the first letter of a text and if it is a, e, i, o, u, some times y.
(Initial y is never treated as a vowel unless a consonant immediately follows it.)
If it is a vowel, it would just set the expression to "an" or if it isn't, it would just be "a".
This would be useful for items such as Apple and Diamond Sword would be come easier to use in a proper sentence.
Problems I could see:
Mock up code: (Not sure how accurate it is for y. Don't mind the color codes. It was for testing.)
command /aan [<text>]: trigger: if first character of arg-1 is "a" or "e" or "i" or "u": broadcast "&5an %arg-1%" else if first character of arg-1 is "y": set {_s} to the first 2 characters of the text argument set {_ycheck::*} to {_s} split at "" loop {_ycheck::*}: add 1 to {_num} if {_num} is 2: if loop-value is "a" or "e" or "i" or "u": broadcast "&4a %arg-1%" else: broadcast "&3an %arg-1%" else: broadcast "&2a %arg-1%"
Y: http://dictionary.reference.com/help/faq/language/g01.html
Thanks, Nfell ;)
Also H with honor and some other words.
This would require user input more than anything.
an hour a user an FTP server all those don't follow the a/an rule.
@Nfell2009: Go
Alrighty. Guess I'll just have to manually do it.
To post a comment, please login or register a new account.