README.md in pragmatic_segmenter-0.0.2 vs README.md in pragmatic_segmenter-0.0.3

- old
+ new

@@ -1,14 +1,15 @@ #Pragmatic Segmenter -[![Gem Version](https://badge.fury.io/rb/pragmatic_segmenter.svg)](http://badge.fury.io/rb/pragmatic_segmenter) [![Code Climate](https://codeclimate.com/github/diasks2/pragmatic_segmenter/badges/gpa.svg)](https://codeclimate.com/github/diasks2/pragmatic_segmenter) +[![Gem Version](https://badge.fury.io/rb/pragmatic_segmenter.svg)](http://badge.fury.io/rb/pragmatic_segmenter) [![Code Climate](https://codeclimate.com/github/diasks2/pragmatic_segmenter/badges/gpa.svg)](https://codeclimate.com/github/diasks2/pragmatic_segmenter) [![Build Status](https://travis-ci.org/diasks2/pragmatic_segmenter.png)](https://travis-ci.org/diasks2/pragmatic_segmenter) [![Test Coverage](https://codeclimate.com/github/diasks2/pragmatic_segmenter/badges/coverage.svg)](https://codeclimate.com/github/diasks2/pragmatic_segmenter) Pragmatic Segmenter is a rule-based sentence boundary detection gem that works out-of-the-box across many languages. ##Install **Ruby** +*Supports Ruby 2.1.5 and above* ``` gem install pragmatic_segmenter ``` **Ruby on Rails** @@ -21,13 +22,13 @@ * If no language is specified, the library will default to English. * To specify a language use its two-digit [ISO 639-1 code](https://www.tm-town.com/languages). ```ruby -text = "Hello world. My name is Mr. Smith. I work for the U.S. Government and I live in the U.S." +text = "Hello world. My name is Mr. Smith. I work for the U.S. Government and I live in the U.S. I live in New York." ps = PragmaticSegmenter::Segmenter.new(text: text) ps.segment -# => ["Hello world.", "My name is Mr. Smith.", "I work for the U.S. Government and I live in the U.S."] +# => ["Hello world.", "My name is Mr. Smith.", "I work for the U.S. Government and I live in the U.S.", "I live in New York."] # Specify a language text = "Այսօր երկուշաբթի է: Ես գնում եմ աշխատանքի:" ps = PragmaticSegmenter::Segmenter.new(text: text, language: 'hy') ps.segment \ No newline at end of file