{"id":15386616,"url":"https://github.com/christianmurphy/gutenberg-book-normalize","last_synced_at":"2026-03-25T01:30:17.384Z","repository":{"id":70009544,"uuid":"159966274","full_name":"ChristianMurphy/gutenberg-book-normalize","owner":"ChristianMurphy","description":"Normalize project Gutenberg books to a format easier for statistical models and machine learning to consume","archived":false,"fork":false,"pushed_at":"2018-12-02T04:15:12.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T23:46:33.823Z","etag":null,"topics":["book","machine-learning","natural-language-processing","project-gutenberg","statistics"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChristianMurphy.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-01T16:51:10.000Z","updated_at":"2022-05-09T19:55:31.000Z","dependencies_parsed_at":"2023-02-22T19:00:46.622Z","dependency_job_id":null,"html_url":"https://github.com/ChristianMurphy/gutenberg-book-normalize","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"04e6a2611982824fa470e616db8dc4cadef75cb7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristianMurphy%2Fgutenberg-book-normalize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristianMurphy%2Fgutenberg-book-normalize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristianMurphy%2Fgutenberg-book-normalize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristianMurphy%2Fgutenberg-book-normalize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChristianMurphy","download_url":"https://codeload.github.com/ChristianMurphy/gutenberg-book-normalize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239942793,"owners_count":19722336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["book","machine-learning","natural-language-processing","project-gutenberg","statistics"],"created_at":"2024-10-01T14:49:58.167Z","updated_at":"2026-03-25T01:30:17.302Z","avatar_url":"https://github.com/ChristianMurphy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gutenberg Book Normalize\n\n\u003e Normalize project Gutenberg books to a format easier for statistical models and machine learning to consume\n\n## Installation\n\n```bash\ngit clone git@github.com:ChristianMurphy/gutenberg-book-normalize.git\ncd gutenberg-book-normalize\nnpm install\n```\n\n## Usage\n\n### Download books\n\n\u003e Download all project Gutenberg English languages books in HTML format\n\nUses project Gutenberg's official robot access guide recommendations \u003chttps://www.gutenberg.org/wiki/Gutenberg:Information_About_Robot_Access_to_our_Pages\u003e\n\n:warning: size is over 75 gigabytes, download time can take 24 hours or more.\n\n```bash\nnpm run gutenberg-download\n```\n\n### Extract books\n\n\u003e Unzips content into files and folders\n\n```bash\nnpm run gutenberg-extract\n```\n\n### Normalize books\n\n\u003e Normalizes HTML content into an easier to process JSON format\n\n```bash\nnpm run gutenberg-normalize\n```\n\nExample output:\n\n```json\n{\n  \"type\": \"book\",\n  \"title\": \"lorem ipsum\",\n  \"author\": \"lorem ipsum\",\n  \"children\": [\n    {\n      \"type\": \"chapter\",\n      \"title\": \"lorem ipsum\",\n      \"level\": \"h2\",\n      \"children\": [\n        {\n          \"type\": \"paragraph\",\n          \"value\": \"lorem ipsum\"\n        }\n      ]\n    }\n  ]\n}\n```\n\n:notebook: format conforms to [unist](https://github.com/syntax-tree/unist).\nAny of the [unist utilities](https://github.com/syntax-tree/unist#list-of-utilities) can be used to further process the content.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristianmurphy%2Fgutenberg-book-normalize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristianmurphy%2Fgutenberg-book-normalize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristianmurphy%2Fgutenberg-book-normalize/lists"}