The short answer to your question is "no" the longer answer is "we're working on it." The rabbit hole here gets very deep but it also a really exciting aspect of modern language. Deciding thethat one word sounds better than another is something that human beings do millions of times when writing. No one sits down and parses through a thesaurus, analyzes historical context, looks for similar usages and then, based on this process, plucks the perfect word out of a list of 30 that mean the same thing. Yet people somehow make these choices all the time and generally agree that some writing feels 'better' or more 'eloquent' than other writing, without being able to pin down exactly why.
One paper that doesn't do exactly what you are looking for, but shows how it might be done is this study of politeness in language done by Stanford another project by the same department is a program that does the exact opposite of what you are looking for (it converts language to logical axioms). Some commercial software can also gauge the degree to which words are positive or negative or find underlying psychological associations with certain terms. These are largely directed towards marketing analysis and other more profitable fields so they often cost a ton.