I have a similar project which is web-based:
My chord naming algorithm works somewhat like the one described here but is based on an intentionally more limited set of chords which I've carefully curated here:
https://github.com/seancolsen/music-theory-data/blob/master/...