Changing suggestion based on POS tag (not just inflection)

I’m basically trying to write a rule that suggests replacing runtimewith the noun form run time or the adjective run-time. Is there a way to express this? I’ve seen the guides that say you can match the inflection of the suggestion to the inflection of the matched token, but LT isn’t aware that the hyphen should be present for the adjective inflection.

Is there some kind of “if/else” or “filter” I can use to only suggest adjectives when runtime is used as an adjective, and nouns when runtime is used as a noun?

There’s no “if” in LT’s XML rules, but you could write a <rulegroup> with two rules, one for each case. Writing a rule filter in Java is also possible, but might be overkill.