diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml
new file mode 100644
index 0000000..628e03d
--- /dev/null
+++ b/.github/workflows/npm-publish.yml
@@ -0,0 +1,33 @@
+name: Publish Package to npmjs
+
+# Trigger this workflow when a release is published
+on:
+ release:
+ types: [published]
+
+jobs:
+ build:
+ # Specify the runner environment
+ runs-on: ubuntu-latest
+
+ steps:
+ # Step 1: Check out the repository's code
+ - name: Check out repository
+ uses: actions/checkout@v4
+
+ # Step 2: Set up Node.js environment
+ - name: Set up Node.js
+ uses: actions/setup-node@v3
+ with:
+ node-version: '20.x' # Specify the Node.js version
+ registry-url: 'https://registry.npmjs.org'
+
+ # Step 3: Install dependencies using npm ci
+ - name: Install dependencies
+ run: npm ci
+
+ # Step 4: Publish the package to npm
+ - name: Publish to npm
+ run: npm publish
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
diff --git a/README.md b/README.md
index 4b0ed56..54d24b4 100644
--- a/README.md
+++ b/README.md
@@ -33,6 +33,7 @@ Can be used in Node.js and the browser.
- **Tatweel Removal**: Remove unnecessary Tatweel characters from Arabic phrases.
- **Convert To Old Arabic**: Transform Arabic text into old script.
- **Tashfeer**: Replaces Arabic text with visually similar characters for encoding purposes.
+- **Word To Letters**: Convert Arabic word to its pronounced letters.
## ⬇️ Installation
@@ -109,6 +110,14 @@ console.log(ArabicServices.tashfeer('هذا النص مشفر'));
// Output: 'هـۮו اڵـݔص مـݭفـݛ'
```
+## Word To Letters
+
+```javascript
+const { ArabicServices } = require('arabic-services');
+console.log(ArabicServices.wordToLetters('شجرة'));
+// Output: شين جيم راء تاء_مربوطة
+```
+
## 💡 Contributing
diff --git a/example.html b/example.html
index 9fc29e1..f0290ed 100644
--- a/example.html
+++ b/example.html
@@ -15,6 +15,7 @@