Algoritmo de Metaphone para a língua portuguesa praticada no Brasil, agradecimentos para @cjordao que escreveu o metaphone-ptbr em C. Utilizado em muitas aplicações Python PostgreSQL e PHP, agora também Node. 😍
const metaphone = require('metaphone-ptbr');
console.log(metaphone('Casas Bahia')); // KZSB
Download node at nodejs.org and install it, if you haven't already.
npm install metaphone-ptbr --save
This package is provided in these module formats:
- CommonJS
- diacritics: remove diacritics from strings
- nan: Native Abstractions for Node.js: C++ header for Node 0.8 -> 11 compatibility
- node-gyp: Node.js native addon build tool
- por-extenso: Brazilian Portuguese numbers in full
- eslint: An AST-based pattern checker for JavaScript.
- eslint-config-airbnb-base: Airbnb's base JS ESLint config, following our styleguide
- eslint-plugin-import: Import with sanity.