Text this: A renormalization-group study of the Potts model with competing ternary and binary interactions