Hack to allow unit tests to call private method. Do not use.
Map<String, int> test_match_alphabet(String pattern) { return _match_alphabet(pattern); }