---
title: "Discussion on \"Ruby Challenge: Create a word occurrence counter\" | Hashnode"
description: "Discussion on \"Ruby Challenge: Create a word occurrence counter\". TL; DR: Get the solution on my Github repository.\n\n\nProblem\nCreate a word occurrence counter.\nGiven a sentence, such as the following one:\nsentence = \"I love Ruby, Ruby is a great language!\"\n\nThe result would be a hash\n{\"I\"=>1, \"love\"=>1, \"Ruby,\"=>2,..."
url: "https://hashnode.com/posts/ruby-challenge-create-a-word-occurrence-counter/647fea17cb2272db6ca890fd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Ruby Challenge: Create a word occurrence counter](https://blog.alexandrecalaca.com/ruby-challenge-create-a-word-occurrence-counter?utm_source=hashnode&utm_medium=feed)

TL; DR: Get the solution on my Github repository. Problem Create a word occurrence counter. Given a sentence, such as the following one: sentence = "I love Ruby, Ruby is a great language!" The result would be a hash {"I"=>1, "love"=>1, "Ruby,"=>2,...

Jun 7, 2023 · 3 min read · blog.alexandrecalaca.com  
Read the article

-   [#ruby](https://hashnode.com/tag/ruby)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Alexandre Calaça](https://hashnode.com/@alexandrecalaca)

@alexandrecalaca

  
[View profile](https://hashnode.com/@alexandrecalaca)

I'm a passionate software developer.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
