Text this: Pattern discovery using k-means algorithm