A question on StackOverflow highlighted that subword-mode could be useful for definitions of "subword" other than the nomenclatures supported at present, and it seemed to me that some very simple changes would make it possible to flexibly over-ride the definition in such situations by either modifying the regexps used, or (for more complicated cases) by providing custom functions. Patch attached for consideration.