Class FixZwnj


  • public class FixZwnj
    extends Object
    Puts zwnj char/half space between word and prefix/suffix
    • Constructor Detail

      • FixZwnj

        public FixZwnj()
    • Method Detail

      • applyHalfSpaceRule

        public static String applyHalfSpaceRule​(String text)
        Adds zwnj char between word and prefix/suffix
        Parameters:
        text - Text to process
        Returns:
        Processed Text
      • normalizeZwnj

        public static String normalizeZwnj​(String text)
        Removes unnecessary zwnj char that are succeeded/preceded by a space
        Parameters:
        text - the text
        Returns:
        string
      • normalizeYeHeHalfSpace

        public static String normalizeYeHeHalfSpace​(String text)
        Converts ه ی to ه‌ی
        Parameters:
        text - the text
        Returns:
        string