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
-[](http://badge.fury.io/rb/pragmatic_segmenter) [](https://codeclimate.com/github/diasks2/pragmatic_segmenter)
+[](http://badge.fury.io/rb/pragmatic_segmenter) [](https://codeclimate.com/github/diasks2/pragmatic_segmenter) [](https://travis-ci.org/diasks2/pragmatic_segmenter) [](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