npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@pakhad/locale-in

v1.0.0

Published

Indian language locale packs for pakhad — Hindi, Marathi, Tamil, Telugu, Kannada, Malayalam, Bengali, Gujarati, Punjabi

Readme

@pakhad/locale-in

Indian language locale packs for pakhad. Ships pre-built romanized (Latin-script) Markov models and name lists for 9 Indian languages.

Languages

| Locale | Language | Names | Export | |--------|----------|-------|--------| | in-hi | Hindi | 249 | hi | | in-mr | Marathi | 164 | mr | | in-ta | Tamil | 96 | ta | | in-te | Telugu | 37 | te | | in-kn | Kannada | 31 | kn | | in-ml | Malayalam | 50 | ml | | in-bn | Bengali | 83 | bn | | in-gu | Gujarati | 65 | gu | | in-pa | Punjabi | 62 | pa |

All models use romanized Latin-script names (e.g. "rahul" not "राहुल").

Install

npm install @pakhad/core @pakhad/locale-in

Usually paired with @pakhad/locale-en for combined coverage:

npm install @pakhad/core @pakhad/locale-en @pakhad/locale-in

Usage

All Indian locales (recommended)

import { create } from '@pakhad/core';
import en from '@pakhad/locale-en';
import indiaLocales from '@pakhad/locale-in';

const detector = create({ locales: [en, ...indiaLocales] });

detector.detect('Rahul Sharma', { fieldType: 'name' });
// { label: "clean", score: 0.086 }

detector.detect('xkqzvb wwwxxx', { fieldType: 'name' });
// { label: "gibberish", score: 0.777 }

Individual locales

import { hi, mr, ta } from '@pakhad/locale-in';

// Only Hindi and Marathi
const detector = create({ locales: [en, hi, mr] });

Force a specific locale

detector.detect('rahul sharma', { locale: 'in-hi' });
detector.detect('sachin patil', { locale: 'in-mr' });
detector.detect('rajesh kumar', { locale: ['in-hi', 'in-ta'] });

Available Exports

// Default export: array of all 9 locales
import indiaLocales from '@pakhad/locale-in';

// Named exports: individual locales
import { hi, mr, ta, te, kn, ml, bn, gu, pa } from '@pakhad/locale-in';

Expanding the Corpus

The shipped name lists are curated starter sets. For production with larger corpora, use @pakhad/train:

npx pakhad-train markov --input your-hindi-names.txt --order 3 --output in-hi-markov.bin
npx pakhad-train namelist --input your-hindi-names.txt --fpr 0.001 --output in-hi-names.bloom

Full Documentation

github.com/nikhilchintawar/pakhad

License

MIT