Ranking system for ordered lists that leverages lexicographic ordering feature of strings.
npm i lexirank
pnpm add lexirank
yarn add lexirank
bun add lexirank
import { LexiRank, AsciiPrintableCharSet } from "lexirank"
const lexirank = new LexiRank(new AsciiPrintableCharSet())
const mid = lexirank.mid() // "O"
const beforeMid = lexirank.before(mid) // "8"
const afterMid = lexirank.after(mid) // "f"
const between = lexirank.between("A", "C") // "B"