A group of useful set-theory operations for text manipulations