https://github.com/3rd/silabe.js
JavaScript syllabification library for the romanian language. (Librarie JavaScript pentru despartirea in silabe in limba romana.)
https://github.com/3rd/silabe.js
javascript romania romanian syllabification
Last synced: 12 months ago
JSON representation
JavaScript syllabification library for the romanian language. (Librarie JavaScript pentru despartirea in silabe in limba romana.)
- Host: GitHub
- URL: https://github.com/3rd/silabe.js
- Owner: 3rd
- License: agpl-3.0
- Created: 2018-02-26T03:21:30.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-08T14:52:13.000Z (about 8 years ago)
- Last Synced: 2025-04-21T09:22:17.950Z (about 1 year ago)
- Topics: javascript, romania, romanian, syllabification
- Language: JavaScript
- Homepage: https://silabe.project.cafe
- Size: 70.3 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Silabe.js
[](https://travis-ci.org/neculaesei/silabe.js)
[](https://github.com/neculaesei/silabe.js/issues)
[](https://github.com/neculaesei/silabe.js/blob/master/LICENSE)


---
## Project description
**English**
Silabe.js is a JavaScript syllabification library for the romanian language.
**Romanian**
RO: Librarie JavaScript pentru despartirea cuvintelor in silabe in limba romana.
## Installation
Option 1: Install through **NPM**:
```bash
npm install silabe --save
```
Option 2: Download a [release](https://github.com/neculaesei/silabe.js/releases) and require / include it.
## Using the library
Silabe is a [UMD](https://github.com/umdjs/umd) module that you can easily use on both server and client sides.
You can either require and use the library like this:
```javascript
const silabe = require('silabe')
console.log(silabe('examen'))
// Outputs to console: ['e', 'xa', 'men']
// Declare accent by placing paranthesis around a vocal
console.log('ungh(i)e')
// Outputs to console: ['un', 'ghi', 'e']
```
Or you can use a `` tag and just load the library in a web page, **silabe** will be a global.
```html
<script src="lib/silabe.min.js">
window.onload = function () {
console.log(silabe('examen'))
}
```
---
### License
This project is licensed under the [GNU Affero General Public License v3.0](https://github.com/neculaesei/silabe.js/blob/master/LICENSE) license.
Permissions:
* Commercial use
* Modification
* Distribution
* Patent use
* Private use
Limitations:
* Liability
* Warranty
[Read full license on opensource.org](https://opensource.org/licenses/AGPL-3.0)
---
Made with <3 by [Andrew](https://andreineculaesei.com)