{"id":24926745,"url":"https://github.com/michaelwp/word-frequency","last_synced_at":"2025-03-28T12:26:18.167Z","repository":{"id":57399134,"uuid":"260115695","full_name":"michaelwp/word-frequency","owner":"michaelwp","description":"javascript library for counting and grouping words number of words in a sentences ","archived":false,"fork":false,"pushed_at":"2020-07-26T12:57:55.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-25T23:20:25.770Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelwp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-30T04:46:32.000Z","updated_at":"2021-10-24T06:38:15.000Z","dependencies_parsed_at":"2022-09-13T21:22:01.450Z","dependency_job_id":null,"html_url":"https://github.com/michaelwp/word-frequency","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fword-frequency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fword-frequency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fword-frequency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwp%2Fword-frequency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelwp","download_url":"https://codeload.github.com/michaelwp/word-frequency/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246028443,"owners_count":20712016,"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":"2025-02-02T12:53:16.035Z","updated_at":"2025-03-28T12:26:18.133Z","avatar_url":"https://github.com/michaelwp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# words-frequency\nmodule for helping to group and count number of words in a sentence\n\n## version history\n* ##### v1.0.0 - the very first version\n```\nHello World :)\n```\n\n* ##### v1.1.0 - minor changes\n```\n1. improve code\n2. Add total of words in result form\n```\n\n## How To Use\n\n``` npm i words-frequency --save ```\n\n```javascript\n// \u003cImport the function\u003e\nconst wordsFrequency = require('words-frequency');\n\n// \u003cexample sentence\u003e :\nconst sentencesEx = 'RegExr was created by gskinner.com, and is proudly hosted by Media Temple. Edit the Expression \u0026 Text to see matches. Roll over matches or the expression for details. PCRE \u0026 JavaScript flavors of RegEx are supported. Validate your expression with Tests mode. The side bar includes a Cheatsheet, full Reference, and Help. You can also Save \u0026 Share with the Community, and view patterns you create or favorite in My Patterns. Explore results with the Tools below. Replace \u0026 List output custom results. Details lists capture groups. Explain describes your expression in plain English !'\n\nconst groupOfSentences = wordsFrequency(sentencesEx);\nconsole.log(groupOfSentences);\n\n```\n### result :\n```\n{\n    total: 91,\n    data : {\n      a: 1,also: 1,and: 3,are: 1,\n      bar: 1,below: 1,by: 2,\n      can: 1,capture: 1,cheatsheet: 1,com: 1,community: 1,create: 1,created: 1,custom: 1,\n      describes: 1,details: 2,\n      edit: 1,english: 1,explain: 1,explore: 1,expression: 4,\n      favorite: 1,flavors: 1,for: 1,full: 1,\n      groups: 1,gskinner: 1,\n      help: 1,hosted: 1,\n      in: 2,includes: 1,is: 1,\n      javascript: 1,\n      list: 1,lists: 1,\n      matches: 2,media: 1,\n      mode: 1,my: 1,\n      of: 1,or: 2,output: 1,over: 1,\n      patterns: 2,pcre: 1,plain: 1,proudly: 1,\n      reference: 1,regex: 1,regexr: 1,replace: 1,results: 2,roll: 1,\n      save: 1,see: 1,share: 1,side: 1,supported: 1,\n      temple: 1,tests: 1,text: 1,the: 5,to: 1,tools: 1,\n      validate: 1,view: 1,\n      was: 1,with: 3,\n      you: 2,your: 2 \n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelwp%2Fword-frequency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelwp%2Fword-frequency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelwp%2Fword-frequency/lists"}