Skip to content

Features Documentation

Abdelrahman Bayoumi edited this page Jun 8, 2024 · 1 revision

💻 Usage

Remove Tashkeel

import io.github.seen_arabic.arabic_services.ArabicServices;

public class Example {
    public static void main(String[] args) {
        System.out.println(ArabicServices.removeTashkeel("الخَيْلُ وَاللّيْلُ وَالبَيْداءُ تَعرِفُني"));
        // Output: الخيل والليل والبيداء تعرفني
    }
}

Remove Tatweel

import io.github.seen_arabic.arabic_services.ArabicServices;

public class Example {
    public static void main(String[] args) {
        System.out.println(ArabicServices.removeTatweel("كن جميـــلا ترى الوجــود جميـــــلا"));
        // Output: كن جميلا ترى الوجود جميلا
    }
}

Convert To Old Arabic

import io.github.seen_arabic.arabic_services.ArabicServices;

public class Example {
    public static void main(String[] args) {
        System.out.println(ArabicServices.textToOldArabic("الخَيْلُ وَاللّيْلُ وَالبَيْداءُ تَعرِفُني"));
        // Output: الحىل واللىل والٮىدا ٮعرڡٮى
    }
}

Convert To Old Arabic And Tashfeer Banned Words

checkout our banned words list

import io.github.seen_arabic.arabic_services.ArabicServices;

public class Example {
    public static void main(String[] args) {
        System.out.println(ArabicServices.toOldArabicAndTashfeerBannedWords("جيش العدو يقتل الأطفال"));
        // Output: چـێـݭ !ڵعـݚۉ ی۪ـڨـټل الاطڡال
    }
}

Tashfeer

import io.github.seen_arabic.arabic_services.ArabicServices;

public class Example {
    public static void main(String[] args) {
        System.out.println(ArabicServices.tashfeer("هذا النص مشفر"));
        // Output: هـۮو اڵـݔص مـݭفـݛ
    }
}

Tashfeer Banned Words

checkout our banned words list

import io.github.seen_arabic.arabic_services.ArabicServices;

public class Example {
    public static void main(String[] args) {
        System.out.println(ArabicServices.tashfeerBannedWords("جيش العدو يقتل الأطفال"));
        // Output: چـێـݭ !ڵعـݚۉ ی۪ـڨـټل الأطفال
    }
}

Word To Letters

import io.github.seen_arabic.arabic_services.ArabicServices;

public class Example {
    public static void main(String[] args) {
        System.out.println(ArabicServices.wordToLetters("شجرة"));
        // Output: شين جيم راء تاء_مربوطة
    }
}

Remove Arabic Affixes

import io.github.seen_arabic.arabic_services.ArabicServices;

public class Example {
    public static void main(String[] args) {
        System.out.println(ArabicServices.removeArabicAffixes("المدرسة"));
        // Output: مدرس
    }
}