Token language for base glyph

What would be the most efficient $token language to capture the glyph name up to the first [.], or the whole name if no [.]? For example, something that captures
/a and /a.ss01 and /a.ss02.

And: there isn’t a way to select for specific components, for example a token that captures all of the glyphs that include /a as a component? (/aacute, /agrave, etc.)

Check the NSPredicate docu. You can use something like ‘beginswith’ and connect two queries with ‘OR’.

Maybe re-using kerning classes can help with the components? Because usually all those glyphs are in the same kerning group.

Okay, I’d thought of the OR solution but wondered if there was anything cleaner.