Skip to content

impr(english_5k): order english_5k.json by frequency (@norwd)#7609

Open
norwd wants to merge 1 commit intomonkeytypegame:masterfrom
norwd:impr-english-5k-order-by-frequency-norwd
Open

impr(english_5k): order english_5k.json by frequency (@norwd)#7609
norwd wants to merge 1 commit intomonkeytypegame:masterfrom
norwd:impr-english-5k-order-by-frequency-norwd

Conversation

@norwd
Copy link
Contributor

@norwd norwd commented Mar 9, 2026

This enables the Zipf funbox on this word list. I used the 10k file as a source of truth, as it was already ordered by frequency, using a simple jq command:

jq -r '{ "name": "english_5k", noLazyMode: true, orderedByFrequency: true, words: .words[:5000] }' english_10k.json > english_5k.json

This diff is quite large but the above command in equivalent to changing the orderedByFrequency value from false to true, and copping the first 5000 words from the 10k file and pasting them over the alphabetically ordered words.

Also note that the 5k file previously had some 4900-odd words, and it now has exactly 5000, so the file shows as having slightly more lines than before. I'm not sure if the extra ~50 words will affect anything, I'm happy to limit the words to only those that were in the original file.

Description

Checks

  • Adding quotes?
    • Make sure to include translations for the quotes in the description (or another comment) so we can verify their content.
  • Adding a language?
    • Make sure to follow the languages documentation
    • Add language to packages/schemas/src/languages.ts
    • Add language to exactly one group in frontend/src/ts/constants/languages.ts
    • Add language json file to frontend/static/languages
  • Adding a theme?
    • Make sure to follow the themes documentation
    • Add theme to packages/schemas/src/themes.ts
    • Add theme to frontend/src/ts/constants/themes.ts
    • (optional) Add theme css file to frontend/static/themes
    • Add some screenshots of the theme, especially with different test settings (colorful, flip colors) to your pull request
  • Adding a layout?
    • Make sure to follow the layouts documentation
    • Add layout to packages/schemas/src/layouts.ts
    • Add layout json file to frontend/static/layouts
  • Adding a font?
    • Make sure to follow the fonts documentation
    • Add font file to frontend/static/webfonts
    • Add font to packages/schemas/src/fonts.ts
    • Add font to frontend/src/ts/constants/fonts.ts
  • Check if any open issues are related to this PR; if so, be sure to tag them below.
  • Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org for more info)
  • Make sure to include your GitHub username prefixed with @ inside parentheses at the end of the PR title.

Closes #

This enables the Zipf funbox on this word list. I used the 10k file as a source of truth, as it was already ordered by frequency, using a simple `jq` command:

```bash
jq -r '{ "name": "english_5k", noLazyMode: true, orderedByFrequency: true, words: .words[:5000] }' english_10k.json > english_5k.json
```

This diff is quite large but the above command in equivalent to changing the `orderedByFrequency` value from `false` to `true`, and copping and pasting the first 5000 words from the 10k file and pasting them over the alphabetically ordered words.

Also note that the 5k file previously had some 4900-odd words, and it now has exactly 5000, so the file shows as having slightly more lines than before. I'm not sure if the extra ~50 words will affect anything, I'm happy to limit the words to only those that were in the original file.
@monkeytypegeorge monkeytypegeorge added frontend User interface or web stuff assets Languages, themes, layouts, etc. labels Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

assets Languages, themes, layouts, etc. frontend User interface or web stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants