User:TomTheHand/Unit tests for AWB regexes/Power

This section contains regular expressions for formatting units of power.

Replace horsepower with convert
Similar to the expressions for nautical miles, this task requires several rules. The first strips commas and spaces from large numbers of horsepower. The second converts abbreviated uses of horsepower. The third converts unabbreviated noun phrases. The fourth converts unabbreviated adjectival phrases. They should not be set up as sub-rules, because then they would only run when we've stripped commas or spaces; we may be dealing with small numbers, so there were no commas to strip, or the article may have simply been written without commas.