Could you mention that this class is somewhat inspired, albeit simpler, by ``org.eclipse.jdt.internal.ui.text.CombinedWordRule``. And that the JDT class cannot be used because it triggers the loading of UI classes, which would prevent testing.