{"id":20519449,"url":"https://github.com/wouterwisse/text-to-emoji","last_synced_at":"2026-07-19T11:37:37.908Z","repository":{"id":63921247,"uuid":"522695120","full_name":"WouterWisse/text-to-emoji","owner":"WouterWisse","description":"🤷‍♂️ Not sure why you'd need this.","archived":false,"fork":false,"pushed_at":"2022-11-16T17:06:15.000Z","size":3313,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T00:16:28.997Z","etag":null,"topics":["emoji","ios","swift","swift-package","text-to-emoji"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WouterWisse.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}},"created_at":"2022-08-08T20:20:13.000Z","updated_at":"2024-01-07T17:04:04.000Z","dependencies_parsed_at":"2022-11-29T09:50:52.243Z","dependency_job_id":null,"html_url":"https://github.com/WouterWisse/text-to-emoji","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WouterWisse%2Ftext-to-emoji","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WouterWisse%2Ftext-to-emoji/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WouterWisse%2Ftext-to-emoji/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WouterWisse%2Ftext-to-emoji/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WouterWisse","download_url":"https://codeload.github.com/WouterWisse/text-to-emoji/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242123333,"owners_count":20075348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["emoji","ios","swift","swift-package","text-to-emoji"],"created_at":"2024-11-15T22:13:49.626Z","updated_at":"2025-10-19T14:17:27.880Z","avatar_url":"https://github.com/WouterWisse.png","language":"Swift","funding_links":["https://www.buymeacoffee.com/wouterwisse"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n   \u003cimg width=\"180\" src=\".github/assets/icon-readme@2x.png\" alt=\"text-to-emoji\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n   \u003cstrong\u003etext-to-🤩\u003c/strong\u003e\u003cBR\u003e\n   🤷‍♂️ Not sure why you'd need this.\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n   \u003cimg src=\"https://github.com/WouterWisse/text-to-emoji/actions/workflows/main.yml/badge.svg\"\u003e\n   \u003ca href=\"https://swiftpackageindex.com/WouterWisse/text-to-emoji\"\u003e\n      \u003cimg src=\"https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FWouterWisse%2Ftext-to-emoji%2Fbadge%3Ftype%3Dplatforms\"\u003e\n   \u003c/a\u003e\n   \u003ca href=\"https://swiftpackageindex.com/WouterWisse/text-to-emoji\"\u003e\n      \u003cimg src=\"https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FWouterWisse%2Ftext-to-emoji%2Fbadge%3Ftype%3Dswift-versions\"\u003e\n   \u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n`Xcode` → `File` → `Add packages...` → enter url → `https://github.com/WouterWisse/text-to-emoji`\n\n## How to use\n#### Get an emoji\n```swift\nlet emoji = await TextToEmoji.emoji(for: \"tomato\") // 🍅\n```\nThis is an `async` method that will `throw` the error `noMatchFound` if no emoji has been matched with the given text.\n\n#### Get an emoji for a preferred category\n```swift\nlet shrimp = TextToEmoji.emoji(for: \"shrimp\", preferredCategory: .foodAndDrink) // 🍤\n```\n```swift\nlet shrimp = TextToEmoji.emoji(for: \"shrimp\", preferredCategory: .animalsAndNature) // 🦐\n```\nWith `preferredCategory` a certain emoji category can be given a higher priority. This can be very useful if the context of the search is known. For example, when looking for the word `shrimp`, two matching emoji's could be: `🦐` and `🍤`.\u003cbr/\u003e\nBy passing `.foodAndDrink` as the `preferredCategory`, the first match will be `🍤`. Passing `.animalsAndNature` would result in `🦐`.\n\nSee `EmojiCategory.swift` for all categories.\n\n## Localization\n| Languages    | Supported   |\n|--------------|-------------|\n| 🇬🇧 English   | ✅          |\n| 🇳🇱 Dutch     | ✅          |\n| 🇩🇪 Deutsch   | ⏳          |\n| 🇪🇸 Español   | ⏳          |\n| 🇫🇷 Français  | ⏳          |\n| 🇮🇹 Italiano  | ⏳          |\n| 🇵🇹 Português | ⏳          |\n\n## Contribution\nFeel free to help me out here, especially with the localization.\n\n## Keep me caffeinated\n\u003ca href=\"https://www.buymeacoffee.com/wouterwisse\" target=\"_blank\"\u003e\n   \u003cimg width=\"220\" src=\".github/assets/bmc-button.png\" alt=\"Buy me a Coffee\"\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwouterwisse%2Ftext-to-emoji","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwouterwisse%2Ftext-to-emoji","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwouterwisse%2Ftext-to-emoji/lists"}