Baseline: main branch state prior to Top-10 films expansion

This commit is contained in:
Hermes Agent committed 2026-11-02 12:34:51 +00:00
commit 6b15603e56
139 files changed
+329420

No files matched your search

+297146
View File
File diff suppressed because it is too large. Load diff
+15
View File
@@ -0,0 +1,15 @@
ISC License
Copyright (c) 2015 Zeke Sikelianos <zeke@sikelianos.com>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+60
View File
@@ -0,0 +1,60 @@
{
"name": "subtlex-word-frequencies",
"version": "2.0.0",
"description": "List of 74,286 words sorted by frequency of use in spoken English",
"license": "ISC",
"keywords": [
"subtlex",
"subtitle",
"words",
"language",
"frequency"
],
"repository": "words/subtlex-word-frequencies",
"bugs": "https://github.com/words/subtlex-word-frequencies/issues",
"author": "Zeke Sikelianos <zeke@sikelianos.com> (http://zeke.sikelianos.com)",
"contributors": [
"Zeke Sikelianos <zeke@sikelianos.com> (http://zeke.sikelianos.com)",
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
],
"main": "index.json",
"files": [
"index.json"
],
"dependencies": {},
"devDependencies": {
"bail": "^1.0.0",
"concat-stream": "^2.0.0",
"d3-dsv": "^1.0.0",
"prettier": "^1.0.0",
"remark-cli": "^7.0.0",
"remark-preset-wooorm": "^6.0.0",
"tape": "^4.0.0",
"unified": "^8.0.0",
"xo": "^0.26.0",
"yauzl": "^2.0.0"
},
"scripts": {
"generate": "node build",
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
"test-api": "node test",
"test": "npm run format && npm run test-api"
},
"prettier": {
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"bracketSpacing": false,
"semi": false,
"trailingComma": "none"
},
"xo": {
"prettier": true,
"esnext": false
},
"remarkConfig": {
"plugins": [
"preset-wooorm"
]
}
}
+91
View File
@@ -0,0 +1,91 @@
# `subtlex-word-frequencies`
[![Build][build-badge]][build]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]
List of 74,286 words sorted by frequency of use in spoken English.
The word counts are derived from [SUBTLEXus][], a corpus of American English
subtitles of movies.
## Install
[npm][]:
```sh
npm install subtlex-word-frequencies
```
## Use
```js
var subtlex = require('subtlex-word-frequencies')
console.log(words.length)
console.log(words.slice(0, 3))
console.log(words.filter(d => d.word.match(/chick/)).slice(0, 5))
```
Yields:
```js
74286
[
{word: 'you', count: 2134713},
{word: 'I', count: 2038529},
{word: 'the', count: 1501908}
]
[
{word: 'chicken', count: 3148},
{word: 'chick', count: 1334},
{word: 'chicks', count: 742},
{word: 'chickens', count: 520},
{word: 'chickenshit', count: 85}
]
```
## API
### `subtlexWordFrequencies`
`Array.<Entry>` — List of all entries in SUBTLEXus.
Each entry has the following properties:
* `word` (`string`) — Unique word
(example: `git`)
* `value` (`number`) — Number of times the word appears in the corpus
(example: `101`)
`word` starts with a capital when the word more often starts with an uppercase
letter than with a lowercase letter (example: `I`).
The entire original corpus consists of 51 million words.
## License
[ISC][license] © [Zeke Sikelianos][author]
<!-- Definition -->
[build-badge]: https://img.shields.io/travis/words/subtlex-word-frequencies.svg
[build]: https://travis-ci.org/words/subtlex-word-frequencies
[downloads-badge]: https://img.shields.io/npm/dm/subtlex-word-frequencies.svg
[downloads]: https://www.npmjs.com/package/subtlex-word-frequencies
[size-badge]: https://img.shields.io/bundlephobia/minzip/subtlex-word-frequencies.svg
[size]: https://bundlephobia.com/result?p=subtlex-word-frequencies
[npm]: https://docs.npmjs.com/cli/install
[license]: license
[author]: http://zeke.sikelianos.com
[subtlexus]: https://www.ugent.be/pp/experimentele-psychologie/en/research/documents/subtlexus