Your comments

Good idea. We use https://www.textlocal.com for some of this kind of thing and I believe they have an API.

M.