Something like SQL would be fine.
It's not a really thought out theory, but I think I'd like to manipulate text via a programming language like VI gods manipulate text with shortcuts.
Thanks for the link I will have a look at them.