diff --git a/README.md b/README.md index 1e7280c..cea8bff 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Wordplay -Some interesting methods to use on words. Currently can match words with their -letters in alphabetical or reverse alphabetical order. +Some interesting methods to use on words. The idea came from a story about a boy, who, when asked to put words in alphabetical order, ordered the letters of the word instead of the words @@ -22,6 +21,17 @@ word.reverse_ordered_letters # zzpia There is also an example which loops through `/usr/share/dict/words` to find words with their letters sorted. I think my favorite is "bijoux". +## New in Version 0.0.2 + +Match palindromes! + +```ruby +require "wordplay" + +words = Wordplay.new("Do geese see God?") # ignores spaces and punctuation +words.palindrome? # true +``` + # Contributing If you have an interesting word method or a bugfix, please submit a pull diff --git a/lib/wordplay/version.rb b/lib/wordplay/version.rb index 33fb422..ebeaf2e 100644 --- a/lib/wordplay/version.rb +++ b/lib/wordplay/version.rb @@ -1,3 +1,3 @@ class Wordplay - VERSION = "0.0.1" + VERSION = "0.0.2" end