{"id":19501230,"url":"https://github.com/gitbookio/tokenize-english","last_synced_at":"2025-04-25T23:31:06.347Z","repository":{"id":57148604,"uuid":"43811994","full_name":"GitbookIO/tokenize-english","owner":"GitbookIO","description":"Javascript tokenizer for english sentences","archived":false,"fork":false,"pushed_at":"2015-10-15T10:15:06.000Z","size":131,"stargazers_count":14,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-23T02:39:28.088Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GitbookIO.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}},"created_at":"2015-10-07T11:49:48.000Z","updated_at":"2023-09-08T17:02:23.000Z","dependencies_parsed_at":"2022-08-31T20:10:16.335Z","dependency_job_id":null,"html_url":"https://github.com/GitbookIO/tokenize-english","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Ftokenize-english","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Ftokenize-english/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Ftokenize-english/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitbookIO%2Ftokenize-english/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GitbookIO","download_url":"https://codeload.github.com/GitbookIO/tokenize-english/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250912660,"owners_count":21506865,"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":[],"created_at":"2024-11-10T22:11:58.139Z","updated_at":"2025-04-25T23:31:06.057Z","avatar_url":"https://github.com/GitbookIO.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tokenize-english\n\n[![Build Status](https://travis-ci.org/GitbookIO/tokenize-english.png?branch=master)](https://travis-ci.org/GitbookIO/tokenize-english)\n[![NPM version](https://badge.fury.io/js/tokenize-english.svg)](http://badge.fury.io/js/tokenize-english)\n\nJavascript tokenizer for english sentences.\n\n\n### Installation\n\n```\n$ npm install tokenize-english\n```\n\n### Usage\n\n```js\nvar tokenize = require('tokenize-text')();\nvar tokenizeEnglish = require('tokenize-english')(tokenize);\n\nvar tokens = tokenizeEnglish.sentences(\"On Jan. 20, former Sen. Barack Obama became the 44th President of the U.S. Millions attended the Inauguration.\")\n\n/*\n[ { index: 0,\n    value: 'On Jan. 20, former Sen. Barack Obama became the 44th President of the U.S.',\n    offset: 74 },\n  { index: 74,\n    value: ' Millions attended the Inauguration.',\n    offset: 36 } ]\n*/\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitbookio%2Ftokenize-english","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitbookio%2Ftokenize-english","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitbookio%2Ftokenize-english/lists"}