Add it to your Gemfile:
gem 'punctuation'
Run bundler:
bundle install
Run the generator:
rails generate punctuation:install
Add punctuation with:
with_punctuation('I think I forgot the period') # => "I think I forgot the period."
Remove punctuation with:
without_punctuation('No period needed.') # => "No period needed"