Skip to content

ProjectClean/deconfuse

Repository files navigation

DeConfuse

logo

Java 11 Java 11 Java 11 Unit tests

About

De confuse is a java librabry which convert confusable unicode characters(similar looking character) or string to english alphabets/strings.

Using

Adding as dependency

  • For gradle: add following to your build.gradle file.
implementation 'io.github.projectclean:deconfuse-0.1.1'
  • For Maven: add the following to your pom.xml file.
<dependency>
  <groupId>io.github.projectclean</groupId>
  <artifactId>deconfuse</artifactId>
  <version>0.1.1</version>
</dependency>

Example

import io.github.projectclean.deconfuse.core.DeConfuse;
import io.github.projectclean.deconfuse.core.DeConfuseFactory;
import io.github.projectclean.deconfuse.enums.Language;

class Test {
    public static void main(String[] args) {
        String s = "ƉͤĆоɳſŪȘȄ";
        DeConfuse deConfuse = DeConfuseFactory.createDeConfuse(Language.ENGLISH);
        System.out.println(deConfuse.deConfuseString(s));
    }
}

/*
 * Output:
 * deconfuse
 */

Demo

POST Request

curl --location --request POST 'https://kumarpushpam.com/api/v1/deconfuse/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "str": "ƉͤĆоɳſŪȘȄ"
}'

Response

{
    "deConfusedString": "deconfuse"
}

About

De confuse is a java librabry which convert confusable unicode characters(similar looking character) or string to english alphabets/strings.

Resources

License

Stars

Watchers

Forks

Packages

No packages published