Skip to content

Transliterate español (spanish) spelling to andaluz proposals using javascript

License

Notifications You must be signed in to change notification settings

andalugeeks/andaluh-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Andaluh-js

Transliterate español (spanish) spelling to andaluz proposals

Table of Contents

Description

The Andalusian varieties of [Spanish] (Spanish: andaluz; Andalusian) are spoken in Andalusia, Ceuta, Melilla, and Gibraltar. They include perhaps the most distinct of the southern variants of peninsular Spanish, differing in many respects from northern varieties, and also from Standard Spanish. Further info: https://en.wikipedia.org/wiki/Andalusian_Spanish.

This package introduces transliteration functions to convert español (spanish) spelling to andaluz. As there's no official or standard andaluz spelling, andaluh-js is adopting the EPA proposal (Er Prinzipito Andaluh). Further info: https://andaluhepa.wordpress.com. Other andaluz spelling proposals are planned to be added as well.

Installation

From NPM repository

$ npm install @andalugeeks/andaluh --save

Usage

First, install dependencies with npm install. Then use tsc CLI to build the distribution /dist folder with tsc.

Javascript

const andaluh = require('@andalugeeks/andaluh');
const EPA = new andaluh.EPA();
console.log(EPA.transcript('El veloz murciélago hindú comía feliz cardillo y kiwi. La cigüeña tocaba el saxofón detrás del palenque de paja'));
// Er belôh murçiélago indú comía felîh cardiyo y kiwi. La çigueña tocaba er çâççofón detrâh der palenque de paha.

TypeScript

You can simply use:

import EPA from '@andalugeeks/andaluh';
var andaluhEPA = new EPA();
console.log(andaluhEPA.transcript('El veloz murciélago hindú comía feliz cardillo y kiwi. La cigüeña tocaba el saxofón detrás del palenque de paja'));
// Er belôh murçiélago indú comía felîh cardiyo y kiwi. La çigueña tocaba er çâççofón detrâh der palenque de paha.

Running tests

For running the basic tests, use

$ npm test

For running the tests based in a manual transcripted csv (some of them are expected to fail), run

$ npm run test:lemario

For running the full suite, use

$ npm run test:all

Publishing

To submit a package to npm registry (as npmjs), use tsc (typescript CLI) to build the distribution folder /dist, then:

$ npm publish

Consider to upgrade the major/minor/patch version before submitting a new package (edit package.json). Also remember to login with npm on your registry account before publishing.

Roadmap

  • Adding more andaluh spelling proposals.
  • Contractions and inter-word interaction rules pending to be implemented.
  • Silent /h/ sounds spelling rules pending to be implemented.
  • Some spelling intervowel /d/ rules are still pending to be implemented.
  • Transliteration rules for some consonant ending words still pending to be implemented.
  • The andaluh EPA group is still deliberating about the 'k' letter.

Support

Please open an issue for support.

Contributing

Please contribute using Github Flow. Create a branch, add commits, and open a pull request.