# pronoun-adjuster

> Pronoun Adjuster takes variables and assigns the proper pronouns.

Latest version **0.1.2** (published 2024-10-24) · CC BY 4.0 license · 0 weekly downloads

## Install

```sh
npm install pronoun-adjuster
pnpm add pronoun-adjuster
yarn add pronoun-adjuster
bun add pronoun-adjuster
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2024-10-24 |
| First published | 2024-10-24 |
| Weekly downloads | 0 |
| License | CC BY 4.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matthew Gruman |
| Maintainers | gruman |
| Keywords | typescript, javascipt, package, pronoun, pronouns |

## Links

- npm: https://www.npmjs.com/package/pronoun-adjuster
- Repository: https://github.com/gruman/pronoun-adjuster
- Homepage: https://matthewgruman.com/pronoun-adjuster
- Issues: git+https://github.com/gruman/pronoun-adjuster.git
- npm.io page: https://npm.io/package/pronoun-adjuster

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2024-10-24
- 0.1.1 — 2024-10-24
- 0.1.0 — 2024-10-24
- 0.0.1 — 2024-10-24

## README

# Pronoun Adjuster
 
Inclusive language with one line of code. Pronoun Adjuster takes variables and assigns the proper pronouns.

## Install

```
yarn add pronoun-adjuster

or

npm install pronoun-adjuster
```

## How does it work?

Use \[P1\] and \[P2\] as fillers for the pronouns, and adjust them with the function.

```
const text = "[P1] learned Monster-Hunting at [P2] university.";
const pronoun1 = "They";
const pronoun2 = "Their";

const adjustedText = adjustPronouns(text, pronoun1, pronoun2);

console.log(adjustedText);
// They learned Monster-Hunting at their university.
```

## Usage example

```
import React, { useState } from 'react';
import adjustPronouns from 'pronoun-adjuster';

const initialText = `<p>Leslie is a skilled Monster-Hunter, known for [P2] courage and strength. [P1] took Monster-Hunting courses at [P2] university.</p>`;

const App: React.FC = () => {

  const [p1, setP1] = useState<string>("They");
  const [p2, setP2] = useState<string>("Their");
  const [text, setText] = useState<string>(initialText);

  return (
    <div style={{ maxWidth: '400px', marginLeft: 'auto', marginRight: 'auto' }}>
      <main>
        <h4>Enter your pronouns:</h4>
        <div style={{ display: 'flex' }}>
          <input type="text" value={p1} onChange={e => setP1(e.target.value)} />
          <p style={{ margin: '2rem' }}>/</p>
          <input type="text" value={p2} onChange={e => setP2(e.target.value)} />
        </div>
        <div dangerouslySetInnerHTML={{ __html: adjustPronouns(text, p1, p2) }} />
      </main>
    </div>
  );
};

export default App;

```

---
_Source: https://npm.io/package/pronoun-adjuster · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
