[intridea.com] (or on Ruby Inside)
Automatic text summarization is the technique where a computer program summarizes a document. A text is put into the computer and a highlighted (summarized) text is returned. The Open Text Summarizer is an open source tool for summarizing texts. The program reads a text and decides which sentences are important and which are not.
Nadav Rotem
Summarize is a new Ruby library that provides bindings to the C-based Open Text Summarizer library. It's an ideal way to get a "summary" of a document and esteemed Rubyist Jeremy McAnally used it in his RailsRumble-winning app TLDR.it.
Once installed (gem install summarize - if you're lucky and have the dependencies), Summarize is easy to use since it adds a summarize method to the String class:
your_string.summarize(:ratio => 25)
In this case, Summarize returns a summary approximately 25% of the length of the original string in your_string.