A unique word counter designed as an exercise to learn Ruby on Rails. This small Rails app will take a text input, count the number of words, count the number of unique words, and display the number of occurences for each unique word in order of most frequently used to least frequently used.
- Ruby 3.2.2
- Rails 7.0.6
- RubyGems
- SQLite3 3.32.3
- Chrome
-
Clone the repository locally
-
Run a database migration
bin/rails db:migrate
- Run the Rails server application
bin/rails server
- Traverse to the application landing page in a web browser
http://127.0.0.1:3000/
NOTE: This application has been tested in Chrome.
-
Click
Article Listing
-
Click
Create new article
-
Enter in a
Title
and paste the article to word count in theText
field -
Click
Create Article
-
The unique word counter is not case sensitive! "happy Happy HAPPY" would be considered to have a total word count of 3, with a unique word count of 1.
-
The unique word counter handles contractions - words like "can't", "don't", and "should've" will not mess up the counting process.
Coming Soon
You're invited to contribute! This project follows the Contributor Covenant regarding contributions.
The base for this application was created from the Getting Started with Rails documentation.
The template used for this README file was created from the Coding Boot Camp Professional README Guide
The template used for the CHANGELOG file was created from the Keep a Changelog guide.
This project uses the MIT License, Copyright (c) David Heinemeier Hansson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.