String clustering algorithms for Ruby