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

tpr/24-sort-words #35

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

tpr/24-sort-words #35

wants to merge 4 commits into from

Conversation

tomprogers
Copy link

I acted on doug719's advice and sorted words.txt and words_alpha.txt using the unix sort command.

Sorting the json file is trickier, so I wrote a JS script (I don't know Python) to generate it based on words_alpha.txt; you are welcome to rewrite it in Python.

I also updated all three zip files.

dictmaker.js Outdated

console.log('processing word list...');

var words = content.split('\n');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var words does not appear to be used below ... 🤔

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh! That'll teach me to code on Xmas.

@MysticMight
Copy link

Hi,
I came across this pull request not too long ago and thought I'd create a port to python for your javascript for those which do not have node js. I've checked the generated json file and the only difference appears to be spacing, which seems to come from the python library. Should I create a separate pull request?

@tomprogers
Copy link
Author

@MysticMight : I'd recommend doing that. It has been 2 months, it appears there's no rush to act on this PR. At this point, I wash my hands. Merge, fork, delete -- I don't care. Best of luck.

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

Successfully merging this pull request may close these issues.

3 participants