Selective Rephrasing

Suppose that our company has a product called "AskRaul" and we want to make sure that "Ask Raul" is equated with "AskRaul". Unfortunately, our president is also named "Raul" and we don't want "asks Raul" or "asked Raul" to be equated with "AskRaul". One possible, but not very good, solution is the following:

<stem this="ask" as="ask"/>
<rephrase this="ask raul" as="askraul"/>

We have now made "ask" and "asks" separate stem classes and they will always be treated as different concepts. To fix the problem, we need to re-equate "ask" and "asks". The complete solution is:

<stem this="ask" as="ask"/>
<rephrase this="ask raul" as="askraul"/>
<rephrase this="ask" as="asks"/>

This example works due to the order of evaluation. If the text says "ask raul", the first rephrase rule will be applied first because it contains the most symbols. The second rephrase rule will not be applied, since the text now reads "askraul". If the text says "ask your mother", then the second rephrase rule is the only one applied, and we have re-equated "ask" with "asks".