MCPcopy Index your code
hub / github.com/AlefAlefAlef/ivrita

github.com/AlefAlefAlef/ivrita @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
64 symbols 134 edges 35 files 3 documented · 5% updated 4y ago★ 442 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

npm Tests and Linting

Ivrita Logo

Ivrita JavaScript Library

Ivrita is an open-source set of typographic tools for gender equality in Hebrew.



<a target="_blank" href="https://alefalefalef.co.il/ivrita"><strong>Read about the project in Hebrew »</strong></a>






<a target="_blank" href="https://github.com/AlefAlefAlef/ivrita-chrome">Chrome Extension</a>
·
<a target="_blank" href="https://he.wordpress.org/plugins/ivrita">WordPress Plugin</a>

Install on your website

If your website uses WordPress, check out the WordPress Plugin for easy usage

Installing the library on your website requires 3 steps: 1. Include the minified JS file: html <script src="https://ivrita.alefalefalef.co.il/ivrita.min.js"></script> 2. Initialize the Ivrita object: * First argument is the DOM element(s) for which texts should be changed (default: <body> and <title>) * Second argument is the initial gender to be set (default: Ivrita.NEUTRAL) JavaScript var ivrita = new Ivrita(document.querySelector('#content'), Ivrita.FEMALE);

  1. Change the gender later with setMode on the object instance: JavaScript ivrita.setMode(Ivrita.MALE); // Possible options: Ivrita.MALE, Ivrita.FEMALE, Ivrita.NEUTRAL, Ivrita.ORIGINAL That's it!

Install Source

Use npm to install the package files locally, to include in another JS library:

npm install ivrita
import Ivrita from 'ivrita';

console.log(Ivrita.genderize('ברוכים/ות הבאות/ים', Ivrita.FEMALE));

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Most typical changes to the Hebrew genderization should be added to the rules.js file. Note that the order of rules matters, since the rules are executed one by one and can conflict.

Use npm test (or npm run test-watch) to make sure your changes didn't break any functionality, and please make sure to update tests for new features or bug fixes.

Core symbols most depended-on inside this repo

Shape

Method 37
Class 17
Function 10

Languages

TypeScript100%

Modules by API surface

src/element.js15 symbols
src/textObject.js7 symbols
src/ui/default.js6 symbols
src/ui/custom.js6 symbols
src/textElement.js6 symbols
src/ui/switch.js5 symbols
src/textNode.js5 symbols
src/textAttribute.js5 symbols
src/rules.js3 symbols
src/utils/finals.js2 symbols
test/dom.test.js1 symbols
src/ui/index.js1 symbols

For agents

$ claude mcp add ivrita \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page