Frequently used words in Ruby programs

Hello All,

I did a small project analyzing top 57 Ruby projects in Github to see what are the frequently used words in Ruby. You can find the project here GNU Ghost / 123 / ruby-word-frequency · GitLab

I would like to hear what you think, your comments and so on. It's part of a larger project https://gnughost.gitlab.io/

- Karthikeyan A K
+91 8428050777

···

Sent with [Proton Mail](https://proton.me/) secure email.

1 Like

I'm curious why you're counting def and end but not module or class?

I'm also curious about "to"...

···

On Jun 25, 2022, at 00:26, Karthikeyan A K <mindaslab@protonmail.com> wrote:

Hello All,

I did a small project analyzing top 57 Ruby projects in Github to see what are the frequently used words in Ruby. You can find the project here GNU Ghost / 123 / ruby-word-frequency · GitLab

I would like to hear what you think, your comments and so on. It's part of a larger project https://gnughost.gitlab.io/

- Karthikeyan A K
+91 8428050777

Sent with Proton Mail secure email.

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

This is a program just counts the words. module occupies 44th place, strangely the variable name n occupies 43rd. The word class occupies 24th place.

In this project I just told the program to count, I did not give any intelligent that some words (like end) can be eliminated and so on because we know it occurs a lot.

You must access the output data which gives word counts of top 11K+ words used in Ruby. You can get the file here https://bafybeid6c4vmggg5ag3cushen67ae2dlp2zvxff2unm66oi32xzyjma2vu.ipfs.dweb.link/counts.zip

- Karthikeyan A K
+91 8428050777

···

Sent with [Proton Mail](https://proton.me/) secure email.

------- Original Message -------
On Sunday, June 26th, 2022 at 12:38 AM, Ryan Davis <ryand-ruby@zenspider.com> wrote:

I'm curious why you're counting def and end but not module or class?

I'm also curious about "to"...

On Jun 25, 2022, at 00:26, Karthikeyan A K <mindaslab@protonmail.com> wrote:

Hello All,

I did a small project analyzing top 57 Ruby projects in Github to see what are the frequently used words in Ruby. You can find the project here GNU Ghost / 123 / ruby-word-frequency · GitLab

I would like to hear what you think, your comments and so on. It's part of a larger project https://gnughost.gitlab.io/

- Karthikeyan A K
+91 8428050777

Sent with [Proton Mail](https://proton.me/) secure email.
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Seeing 'expect' and 'it' in the list, I wonder if the 'to' is more from RSpec. Seeing 'the' also makes me think it's from comments.

Best Regards,
Mohit.
2022-6-30 | 11:58 am.

···

On 2022-6-26 3:08 am, Ryan Davis wrote:

I'm curious why you're counting def and end but not module or class?

I'm also curious about "to"...

That's a good point, I did not filter out comments.

- Karthikeyan A K
+91 8428050777

···

Sent with Proton Mail secure email.

------- Original Message -------
On Thursday, June 30th, 2022 at 9:29 AM, Mohit Sindhwani mo_mail@onghu.com wrote:

On 2022-6-26 3:08 am, Ryan Davis wrote:

> I'm curious why you're counting def and end but not module or class?
>
> I'm also curious about "to"...

Seeing 'expect' and 'it' in the list, I wonder if the 'to' is more from
RSpec. Seeing 'the' also makes me think it's from comments.

Best Regards,
Mohit.
2022-6-30 | 11:58 am.

I did not believe that `def` and `end` should be included in the most used words collection as they are sacrosanct.

Uzor Efedigbue (he/him)

···

On Jun 30, 2022, at 10:01 AM, Karthikeyan A K <mindaslab@protonmail.com> wrote:

That's a good point, I did not filter out comments.

- Karthikeyan A K
+91 8428050777

Sent with Proton Mail secure email.

------- Original Message -------
On Thursday, June 30th, 2022 at 9:29 AM, Mohit Sindhwani mo_mail@onghu.com wrote:

On 2022-6-26 3:08 am, Ryan Davis wrote:

I'm curious why you're counting def and end but not module or class?

I'm also curious about "to"...

Seeing 'expect' and 'it' in the list, I wonder if the 'to' is more from
RSpec. Seeing 'the' also makes me think it's from comments.

Best Regards,
Mohit.
2022-6-30 | 11:58 am.

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;