Text this: Submodular functions and optimization