Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gem can't find the dictionaries #28

Closed
helphop opened this issue Feb 15, 2019 · 4 comments
Closed

Gem can't find the dictionaries #28

helphop opened this issue Feb 15, 2019 · 4 comments

Comments

@helphop
Copy link

helphop commented Feb 15, 2019

I am getting the following error when I try to run this gem:

Errno::ENOENT: No such file or directory @ rb_sysopen - lib/dictionaries/en_us.txt

I've checked the directories and the dictionaries are all there.

I have changed the textstat.rb file line 155 as follows:

File.read("#{__dir__}/dictionaries/#{language}.txt").each_line do |line|
  easy_words << line.chop
end

This fixes the problem. I'm not sure if this is working for all other users or if others are having the same issue as I am.

@jmartyniak
Copy link

I am having the same issue. thank you for the fix. how do we get that into the gem? PR?

@helphop
Copy link
Author

helphop commented Mar 10, 2019

I'm very happy to know that I'm not the only one and that the code has helped. I could create a pull request and submit the code. I just don't know how to do that. If you do please do so, there may be others who could benefit.

@kupolak
Copy link
Owner

kupolak commented Mar 13, 2019

@helphop @jmartyniak Thank you for your interest in this gem! I am busy lately, so sorry for my late response. I welcome your PR, you just have to fork my repository, make changes in your fork, commit and push it to your fork and create a pull request to my repository.

@kupolak
Copy link
Owner

kupolak commented Feb 7, 2020

Merged #29

@kupolak kupolak closed this as completed Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants