Seen-Arabic / Arabic-Services-JavaScript

A versatile library offering utility functions for processing and transforming Arabic text. Can be used in Node.js and the browser.
https://www.npmjs.com/package/arabic-services
GNU General Public License v3.0
15 stars 2 forks source link

Remove Arabic Affixes #17

Closed AbdelrahmanBayoumi closed 11 months ago

AbdelrahmanBayoumi commented 11 months ago

Remove Arabic Affixes

Remove Arabic Affixes: Removes predefined affixes (prefixes and suffixes) from an Arabic word if it starts or ends with those affixes

const { ArabicServices } = require('arabic-services');
console.log(ArabicServices.removeAffixes('المدرسة'));
// Output: مدرس