Classify is a project mainly written in ..., it's free.
Ruby code to build dynamic classification breaks from arrays of data