If you know the names you're looking for, couldn't you just manually add those classes, rather than generating the full list?
You could also try using an Arcade expression to find names that contain certain key words or phrases.
var n = $feature.name
function word_check(word){
return Find(word, n) > -1
}
var key_words = [
'city of',
'department',
'agency'
]
return Iif(
Any(key_words, word_check),
n,
null
)
This would give you the unique names, but only if at least one item in key_words appears in the name somewhere.
- Josh Carlson
Kendall County GIS