06-27-2012, 01:02 PM
I think the description is wrong in rules/specific.rule too:
but I think it switches the first two chars, not the last two. To switch the last two chars, the k in the rules should have been capitalized.
Also, I didn't see any documentation of the '>' in docs/rules.txt, but I assume this is a test meaning we should continue only if the length of the input string is equal to or greater than A (10). Does it in fact mean greater or equal, or strictly greater? The first sounds confusing, in my opinion it ought to be the latter.
Code:
## rule: switch last two chars of word with each other
## limits: words greater or equal 10 chars length
## example: johnnoble ---> johnnobel
## extras: experienced effective cases
>A k l
>A k u
>A k c
but I think it switches the first two chars, not the last two. To switch the last two chars, the k in the rules should have been capitalized.
Also, I didn't see any documentation of the '>' in docs/rules.txt, but I assume this is a test meaning we should continue only if the length of the input string is equal to or greater than A (10). Does it in fact mean greater or equal, or strictly greater? The first sounds confusing, in my opinion it ought to be the latter.