One option is to port an existing library like https://github.com/gobuffalo/flect to C++, and then get mime to use it.