I actually had already moved this to TextEditingActionTarget as a private instance method that uses TextMetrics.getWordPosition, but I had forgotten to delete this static method here. Thanks for catching this. Let me know if you like it on TextEditingActionTarget or if you think it would be better on TextMetrics.

Regarding RTL, you're right, I think we have a lot of missing support for this. I've created an issue ([URL]) and I'll add TODOs for it here.