Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opposites

Find your name's opposite. A small web toy that takes any word and generates its "opposite" three different ways.

What it does

Type something and Opposites maps each letter to an "opposite" letter, keeping the result pronounceable by swapping consonants for consonants and vowels for vowels. It shows three takes:

  • distance: replace each letter with the one half a letter-pool away. This tends to produce the most believable fake words.
  • inverse: the classic mirror mapping (a to z, b to y), constrained to the letter pools so it stays pronounceable (a to y, b to z, and so on).
  • reverse: the string, backwards.

The app has a "How does it work?" toggle that walks through the letter pools and the math.

How the mappings work

Letters are split into two pools: 20 consonants and 6 vowels, each zero-indexed. Every replacement happens within a letter's own pool, so consonants stay consonants and vowels stay vowels, and you don't end up with gibberish.

  • inverse takes the mirror index within the pool.
  • distance jumps half the pool forward or backward, depending on which half the letter falls in.

Run it locally

Built with Create React App and TypeScript.

yarn install
yarn start      # dev server on http://localhost:3000
yarn build      # production build
yarn test       # test runner

(npm works too: npm install, npm start, and so on.)

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages