You can if you have a way to look up/record the associated pronunciation of the relevant word in each sentence. Manual entry would be one straightforward way.
Showing matches after that would be simple.
There are thousands of sentences saved in Dictionary. And my mother tongue is not English. I don't know the rhymes. I think my job is very difficult.