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

@vantigo-ai/bls-soc-map

v1.0.0

Published

Maps free-text job titles to U.S. Bureau of Labor Statistics SOC codes. Includes role normalization, Levenshtein fuzzy matching, and 158 occupation patterns across 30+ categories.

Readme

@vantigo/bls-soc-map

Maps free-text job titles to U.S. Bureau of Labor Statistics (BLS) Standard Occupational Classification (SOC) codes. Includes 299 occupation patterns, role normalization, and Levenshtein fuzzy matching.

npm version MIT License

Installation

npm install @vantigo/bls-soc-map

Quick Start

const { getSocCode, normalizeRole } = require('@vantigo/bls-soc-map');

getSocCode('senior frontend engineer');   // → '15-1252'
getSocCode('registered nurse');           // → '29-1141'
getSocCode('data scientist');             // → '15-2051'

normalizeRole('Sr. Software Developer');  // → 'software engineer'
normalizeRole('RN');                      // → 'registered nurse'

API

getSocCode(role, options?) → string | null

Returns the BLS SOC code for a free-text job title. Uses exact match first, then Levenshtein fuzzy matching.

getSocCode('machine learning engineer');             // → '15-2051'
getSocCode('mlops', { fuzzyThreshold: 0.6 });        // → '15-1244'
getSocCode('not a real job title');                  // → null

Options: | Option | Type | Default | Description | |---|---|---|---| | fuzzyThreshold | number | 0.75 | Minimum similarity score (0–1) for fuzzy match |

normalizeRole(raw) → string

Lowercases, strips punctuation, and expands common abbreviations to the canonical role name.

normalizeRole('Sr. SWE');                 // → 'software engineer'
normalizeRole('VP of Engineering');       // → 'engineering manager'
normalizeRole('RN, BSN');                 // → 'registered nurse'

getSocTitle(socCode) → string | null

Returns the official BLS occupation title for a SOC code.

getSocTitle('15-1252');  // → 'Software Developers'
getSocTitle('29-1141');  // → 'Registered Nurses'

getRolesForCode(socCode) → string[]

Returns all normalized role names that map to a given SOC code.

getRolesForCode('15-1252');
// → ['software engineer', 'software developer', 'senior software engineer', ...]

getAllCodes() → string[]

Returns all unique SOC codes in the dataset.

SOC_MAP

The raw mapping object: { [normalizedRole]: socCode }. 299 entries across 30+ occupational categories.

Coverage

| Category | Roles Covered | |---|---| | Software Engineering | 25 patterns | | Data / ML / AI | 18 patterns | | Product & Design | 12 patterns | | Healthcare | 22 patterns | | Finance & Accounting | 18 patterns | | Legal | 8 patterns | | Sales & Marketing | 16 patterns | | Operations & HR | 14 patterns | | Education | 10 patterns | | Skilled Trades | 18 patterns | | … and 20+ more categories | … |

Dataset

The underlying mapping data is also available as a public CSV dataset:

Format: role_input, normalized_role, soc_code, soc_title, confidence

Citation

If you use this package in academic research, please cite:

@software{ogirala2026blssocmap,
  author = {Ogirala, Kranthi Kumar},
  title  = {Vantigo BLS SOC Map: Job Title Normalization to BLS Standard Occupational Classification Codes},
  year   = {2026},
  url    = {https://github.com/ogkranthi/earnmore},
  note   = {npm package @vantigo/bls-soc-map}
}

Related Packages

License

MIT © Kranthi Kumar Ogirala / Vantigo