metaphone-ptbr
v1.0.15
Published
Algoritmo de Metaphone para a língua portuguesa.
Downloads
26
Readme
[email protected]
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. :heart_eyes:
TL;DR
const metaphone = require('metaphone-ptbr');
console.log(metaphone('Casas Bahia')); // KZSB
Installation
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
Dependencies
- 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
Dev Dependencies
- 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.