Fenglish
Includes utilities which play with persian texts for Fenglish purposes.
Install
npm i fenglish
Usages
toFenglish
This function takes a Persian
text and returns its Fenglish
text.
Notes:
- Vowels are effective in the output of this function
- This function works correctly for "Alef", "Ayn", "Hamza", "Vaav" and "Ye" letters and not work correctly for other letters yet. (Work in progress...)
Example
import { toFenglish } from 'fenglish'
const persian = 'آرامَم مَن!'
console.log(toFenglish(persian)) // prints `aramam man!`