{"id":25195984,"url":"https://github.com/simplisticated/wordy-for-android","last_synced_at":"2026-05-01T14:32:43.037Z","repository":{"id":140530617,"uuid":"148450441","full_name":"simplisticated/Wordy-for-Android","owner":"simplisticated","description":"String processor for Android","archived":false,"fork":false,"pushed_at":"2018-10-06T13:10:00.000Z","size":399,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-04T15:52:46.410Z","etag":null,"topics":["android","java","string","text-processing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simplisticated.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-12T08:51:17.000Z","updated_at":"2021-12-23T22:19:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"fdb6649c-1023-4a2f-8293-f7dc86d1550b","html_url":"https://github.com/simplisticated/Wordy-for-Android","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/simplisticated/Wordy-for-Android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FWordy-for-Android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FWordy-for-Android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FWordy-for-Android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FWordy-for-Android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplisticated","download_url":"https://codeload.github.com/simplisticated/Wordy-for-Android/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplisticated%2FWordy-for-Android/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32501399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","java","string","text-processing"],"created_at":"2025-02-10T01:39:22.611Z","updated_at":"2026-05-01T14:32:43.028Z","avatar_url":"https://github.com/simplisticated.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\" \u003e\n\t\u003cimg src=\"/Images/logo_2048_600.png\" alt=\"Wordy\" title=\"Wordy\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://http://www.android.com\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/badge/android-15-green.svg?style=flat\"\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://tldrlegal.com/license/apache-license-2.0-(apache-2.0)\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/badge/License-Apache 2.0-blue.svg?style=flat\"\u003e\n\t\u003c/a\u003e\n\u003c/p\u003e\n\n## At a Glance\n\n`Wordy` is a powerful text processor that provides an easy way to manage content in `String` object.\n\n## How to Get Started\n\nAdd `jitpack.io` repository to your project:\n\n```javascript\nallprojects {\n    repositories {\n        jcenter()\n        maven { url \"https://jitpack.io\" }\n    }\n}\n```\n\nThen add `Wordy` to dependencies list:\n\n```javascript\ndependencies {\n    implementation 'com.github.igormatyushkin014:Wordy-for-Android:1.4'\n}\n```\n\n## Requirements\n\n* Android SDK 15 and later\n* Android Studio 3.0 and later\n* Java 7 and later\n\n## Usage\n\nEverything starts with `Wordy` class. This is your entry point to all tools provided by the library.\n\n### Text Effects\n\nLet's start with a very simple example of text effect:\n\n```java\nString filteredText = Wordy.effects(\"Hi!\")\n    .apply(new InversionEffect())\n    .getResult();\n\nSystem.out.println(filteredText); // \"!iH\"\n```\n\nThis is how it works: `Wordy.effects(...)` gives you an `EffectManager` instance configured for your source text. Then, you can apply some effects and retrieve the final text by `.getResult()` call.\n\nIn the example above, the `InversionEffect` will be applied to the entire string. The same time, you can apply effect to a particular substring:\n\n```java\nString filteredText = Wordy.effects(\"Hi!\")\n    .apply(new InversionEffect(), 0, 1) // Start index is 0, end index is 1\n    .getResult();\n\nSystem.out.println(filteredText); // \"iH!\"\n```\n\nYou can add as many effects as you want:\n\n```java\nString filteredText = Wordy.effects(\"This text will be rotated\")\n    .apply(new RotationEffect(TextRotation.INVERTED))\n    .apply(new InversionEffect())\n    .getResult();\n\nSystem.out.println(filteredText); // \"рǝʇɐʇоɹ ǝq llıм ʇxǝʇ sıɥʇ\"\n```\n\n#### Case Effect\n\nRepresented by `CaseEffect` class. Changes case for the entire text or letters at particular positions.\n\nConstructor example:\n\n```java\nnew CaseEffect(\n    TextCase.FIRST_UPPER_NEXT_LOWER\n)\n```\n\n[`TextCase`](#text-case) is the only setting that defines `CaseEffect`'s behavior.\n\n#### Rotation Effect\n\nRepresented by `RotationEffect` class. Rotates letters. For example,\n\n`p` becomes `d`\n\nand\n\n`h` becomes `ɥ`.\n\n`RotationEffect` has two available constructors. The most detailed version of constructor:\n\n```java\nnew RotationEffect(\n    TextRotation.INVERTED,\n    true\n)\n```\n\nThe first parameter is a [`TextRotation`](#text-rotation) value that defines the way to rotate symbols.\n\nThe second parameter of boolean type defines whether the rotation alrorithm should be case sensitive. If it equals to `false`, some uppercased symbols might become lowercased as a result of rotation.\n\nThe second constructor is a simplified version of the first one:\n\n```java\nnew RotationEffect(\n    TextRotation.INVERTED\n)\n```\n\nIt's case sensitive by default. Usually, it's enough to use the second constructor excepting cases when you need more flexibility.\n\n#### Inversion Effect\n\nRepresented by `InversionEffect` class. Flips text from right to left, so\n\n`Hi!`\n\nturns into\n\n`!iH`\n\n`InversionEffect`'s constructor is very simple and doesn't require any parameters:\n\n```java\nnew InversionEffect()\n```\n\n### Transliteration\n\nExample of transliteration:\n\n```java\nString transliterated = Wordy.transliterate(\n    Language.RUSSIAN,    // from Russian\n    Language.ENGLISH     // to English\n).getText(\"Привет!\");\n\nSystem.out.println(transliterated); // \"Privet!\", which means \"Hi!\"\n```\n\nCurrently supported languages are:\n\n- English\n- Russian\n\n### Options\n\n#### Text Case\n\n`TextCase` is used as a setting for `CaseEffect` instance. Available values are:\n\n- `ALL_UPPER`: Makes the entire text uppercased.\n- `ALL_LOWER`: Makes the entire text lowercased.\n- `FIRST_UPPER_NEXT_LOWER`: First symbol is uppercased, other text is lowercased.\n- `FIRST_LOWER_NEXT_UPPER`: First symbol is lowercased, other text is uppercased.\n- `ALTERNATING_FIRST_UPPER_CASE`: Odd symbols are uppercased, even symbols are lowercased.\n- `ALTERNATING_FIRST_LOWER_CASE`: Odd symbols are lowercased, even symbols are uppercased.\n\n#### Text Rotation\n\n`TextRotation` defines the conditions of symbol rotation. Available values:\n\n- `NORMAL`: Forces all symbols to be rotated to normal position. It means that `ʎ` would become `y` and `h` would stay `h`.\n- `UPSIDE_DOWN`: Forces all symbols to be rotated upside down. In this case, `y` would turn into `ʎ`, but `ɥ` wouldn't change at all.\n- `INVERTED`: Normal symbols are forced to be rotated meanwhile rotated symbols become normal. So, `y` becomes `ʎ` and `ɥ` turns into `h`.\n\n#### Language\n\nThe `Language` type is used for transliterations. Possible values:\n\n- `ENGLISH`\n- `RUSSIAN`\n\n### Plugins\n\nYou can extend the functionality of `Wordy` without making changes to the library. Instead of sending pull request, simply create your own plugin.\n\nEach plugin is a subclass of the abstract class named `Plugin`. Take a look at the example below:\n\n```java\npublic class Repeat extends Plugin {\n\n    public Repeat(String sourceText) {\n        super(sourceText);\n    }\n\n    @Override\n    public String getResult() {\n        return this.getSourceText()\n            + this.getSourceText();\n    }\n}\n```\n\nThis is a plugin that repeats the source text two times. All that you need to implement is:\n\n- overrided constructor that takes `sourceText` parameter of `String` type;\n- `getResult()` method that returns `String` with filtered text.\n\nThe core of your plugin's implementation is the `getResult()` method, inside of which you can implement any logic. To access the source text, simply use `getSourceText()` method.\n\nNow let's try to use the plugin:\n\n```java\nString repeatedText = Wordy.plugin(\n    Repeat.class,\n    \"Test.\"\n).getResult();\n\nSystem.out.println(repeatedText); // \"Test.Test.\"\n```\n\nAs you can see, creating and using plugins for `Wordy` is quite easy. You can publish your plugins as separate library or send as a pull request if you want it to be included in the library after reviewal process.\n\n## License\n\n`Wordy` is available under the Apache 2.0 license. See the [LICENSE](./LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplisticated%2Fwordy-for-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplisticated%2Fwordy-for-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplisticated%2Fwordy-for-android/lists"}