Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
pronunciation-lexicon-specification-json
Advanced tools
Builder for Pronunciation Lexicon Specification.
Convert JSON to Pronunciation Lexicon Specification(PLS) XML.
PLS spec: Pronunciation Lexicon Specification (PLS) Version 1.0
Install with npm:
npm install pronunciation-lexicon-specification-json
import {jsonToPLSXML} from "pronunciation-lexicon-specification-json";
jsonToPLSXML({
"lang": "en-US",
"alphabet": "ipa",
"lexeme": [
{
"grapheme": [
"colour",
"color"
],
"phoneme": "kʌlər"
},
{
"grapheme": "Roberto",
"phoneme": "ɹəˈbɛːɹɾoʊ"
}
]
})
It output PLS(XML).
<?xml version="1.0" encoding="UTF-8"?>
<lexicon version="1.0" xmlns="http://www.w3.org/2005/01/pronunciation-lexicon" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2005/01/pronunciation-lexicon http://www.w3.org/TR/2007/CR-pronunciation-lexicon-20071212/pls.xsd" alphabet="ipa" xml:lang="en-US">
<lexeme>
<grapheme>colour</grapheme>
<grapheme>color</grapheme>
<phoneme>kʌlər</phoneme>
</lexeme>
<lexeme>
<grapheme>Roberto</grapheme>
<phoneme>ɹəˈbɛːɹɾoʊ</phoneme>
</lexeme>
</lexicon>
See Releases page.
Install devDependencies and Run npm test
:
npm i -d && npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT © azu
FAQs
Builder for Pronunciation Lexicon Specification.
We found that pronunciation-lexicon-specification-json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.