Be careful when using just the glyph names to create classes. For example, all glyphs starting with “E” also includes “Eng” (Ŋ) and “Eth” (Ð). Similarly, “Germandbls” (ẞ) starts with a “G” but is not related to G. There are many other such issues, especially if your font includes multiple scripts.
I would assign a tag to the glyphs you want in a group and then use predicates to collect all glyphs with the same tag into a class: @SomeClass = [$["some-tag" in tags]];
I can recommend my Guten Tag plugin for quickly assigning tags to glyphs: