{"id":22881474,"url":"https://github.com/luludotdev/mattophobia","last_synced_at":"2026-05-16T08:07:32.583Z","repository":{"id":29611702,"uuid":"122232690","full_name":"luludotdev/mattophobia","owner":"luludotdev","description":"Generate Mattophobia-like sentences","archived":false,"fork":false,"pushed_at":"2023-01-05T16:16:18.000Z","size":884,"stargazers_count":2,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T21:18:19.130Z","etag":null,"topics":["generator","javascript","js","matt","mattophobia","nerdcubed","says"],"latest_commit_sha":null,"homepage":"https://mattophobia.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luludotdev.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":"2018-02-20T17:41:39.000Z","updated_at":"2022-05-06T08:51:42.000Z","dependencies_parsed_at":"2023-01-14T15:30:29.454Z","dependency_job_id":null,"html_url":"https://github.com/luludotdev/mattophobia","commit_stats":null,"previous_names":["luludotdev/mattophobia","lolpants/mattophobia"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luludotdev%2Fmattophobia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luludotdev%2Fmattophobia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luludotdev%2Fmattophobia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luludotdev%2Fmattophobia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luludotdev","download_url":"https://codeload.github.com/luludotdev/mattophobia/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246491670,"owners_count":20786239,"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":["generator","javascript","js","matt","mattophobia","nerdcubed","says"],"created_at":"2024-12-13T17:37:19.501Z","updated_at":"2026-05-16T08:07:27.544Z","avatar_url":"https://github.com/luludotdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💢 Mattophobia\n[![NPM version](https://img.shields.io/npm/v/mattophobia.svg?maxAge=3600)](https://www.npmjs.com/package/mattophobia)\n[![NPM downloads](https://img.shields.io/npm/dt/mattophobia.svg?maxAge=3600)](https://www.npmjs.com/package/mattophobia)\n[![Build status](https://travis-ci.org/lolPants/mattophobia.svg)](https://travis-ci.org/lolPants/mattophobia)\n[![Dependencies](https://img.shields.io/david/lolpants/mattophobia.svg?maxAge=3600)](https://david-dm.org/lolpants/mattophobia)\n[![Coverage Status](https://coveralls.io/repos/github/lolPants/mattophobia/badge.svg?branch=master)](https://coveralls.io/github/lolPants/mattophobia?branch=master)\n\n_Generate Mattophobia-like sentences_\n\n## 💾 Installation\nThe package is on the NPM registry as `mattophobia`. Simply install it with your NPM client of choice.\n\n## 🔧 Usage\nFirst, import the module:\n```js\nconst mattophobia = require('mattophobia')\n```\n\n`mattophobia()` is an [ES6 generator function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator) that creates an [`IterableIterator\u003cstring\u003e`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).\nIt returns an infinite series of Mattophobia strings.\n\n### 💉 Options\nYou can pass in an object with options when instantiating the generator.\n\n| Option | Type | Default | Description |\n| - | - | - | - |\n| `ings` | `string[]` | see `constants.ts` | Words ending with -ing for the generator |\n| `swears` | `string[]` | see `constants.ts` | Profanity for the generator |\n| `standalone` | `string[]` | see `constants.ts` | Standalone phrases for the generator |\n| `minWords` | `number` | `4` | Minimum number of words per sentence |\n| `maxWords` | `number` | `18` | Maximum number of words per sentence |\n| `maxLength` | `number` | `140` | Maximum length of the string. Set to `\u003c 1` for no limit. |\n\n### 📝 Example\n```js\n// Import the module\nconst mattophobia = require('mattophobia')\n\n// Limit to tweet length\nconst generator = mattophobia({ maxLength: 280 })\nconsole.log(generator.next().value)\n```\n\n## 💙 Special Thanks\n* [Python Fork](https://github.com/DerpyChap/mattophobia_says)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluludotdev%2Fmattophobia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluludotdev%2Fmattophobia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluludotdev%2Fmattophobia/lists"}