{"id":15374970,"url":"https://github.com/novi/mecab-swift","last_synced_at":"2026-03-06T09:33:59.099Z","repository":{"id":49003085,"uuid":"48579022","full_name":"novi/mecab-swift","owner":"novi","description":"MeCab(Japanese Morphological Analyzer) wrapper for Swift","archived":false,"fork":false,"pushed_at":"2021-07-01T10:21:51.000Z","size":38,"stargazers_count":74,"open_issues_count":2,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-25T19:43:46.873Z","etag":null,"topics":["linux","mecab","swift"],"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/novi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-25T11:57:12.000Z","updated_at":"2025-11-28T07:27:52.000Z","dependencies_parsed_at":"2022-09-07T14:00:32.120Z","dependency_job_id":null,"html_url":"https://github.com/novi/mecab-swift","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/novi/mecab-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novi%2Fmecab-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novi%2Fmecab-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novi%2Fmecab-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novi%2Fmecab-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/novi","download_url":"https://codeload.github.com/novi/mecab-swift/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novi%2Fmecab-swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30169034,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["linux","mecab","swift"],"created_at":"2024-10-01T14:00:17.057Z","updated_at":"2026-03-06T09:33:59.080Z","avatar_url":"https://github.com/novi.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"mecab-swift\n===========\n\n[![Swift 5.2](https://img.shields.io/badge/Swift-5.2-orange.svg)](https://swift.org)\n![Platform Linux, macOS](https://img.shields.io/badge/Platforms-Linux%2C%20macOS-lightgray.svg)\n[![CircleCI](https://circleci.com/gh/novi/mecab-swift.svg?style=svg)](https://circleci.com/gh/novi/mecab-swift)\n\n\n\nMeCab wrapper for Swift.\n\n\n```swift \nimport MeCab\n\nlet m = Mecab()\n\nlet nodes = try! m.tokenize(\"太郎は次郎が持っている本を花子に渡した。\")\n\nfor n in nodes.filter({ !$0.isBosEos }) {\n    print(n.surface, n.features)\n}      \n``` \n\n```\n太郎 [\"名詞\", \"固有名詞\", \"人名\", \"名\", \"*\", \"*\", \"太郎\", \"タロウ\", \"タロー\"]\nは [\"助詞\", \"係助詞\", \"*\", \"*\", \"*\", \"*\", \"は\", \"ハ\", \"ワ\"]\n次郎 [\"名詞\", \"固有名詞\", \"人名\", \"名\", \"*\", \"*\", \"次郎\", \"ジロウ\", \"ジロー\"]\nが [\"助詞\", \"格助詞\", \"一般\", \"*\", \"*\", \"*\", \"が\", \"ガ\", \"ガ\"]\n持っ [\"動詞\", \"自立\", \"*\", \"*\", \"五段・タ行\", \"連用タ接続\", \"持つ\", \"モッ\", \"モッ\"]\nて [\"助詞\", \"接続助詞\", \"*\", \"*\", \"*\", \"*\", \"て\", \"テ\", \"テ\"]\nいる [\"動詞\", \"非自立\", \"*\", \"*\", \"一段\", \"基本形\", \"いる\", \"イル\", \"イル\"]\n本 [\"名詞\", \"一般\", \"*\", \"*\", \"*\", \"*\", \"本\", \"ホン\", \"ホン\"]\nを [\"助詞\", \"格助詞\", \"一般\", \"*\", \"*\", \"*\", \"を\", \"ヲ\", \"ヲ\"]\n花 [\"名詞\", \"一般\", \"*\", \"*\", \"*\", \"*\", \"花\", \"ハナ\", \"ハナ\"]\n子 [\"名詞\", \"接尾\", \"一般\", \"*\", \"*\", \"*\", \"子\", \"コ\", \"コ\"]\nに [\"助詞\", \"格助詞\", \"一般\", \"*\", \"*\", \"*\", \"に\", \"ニ\", \"ニ\"]\n渡し [\"動詞\", \"自立\", \"*\", \"*\", \"五段・サ行\", \"連用形\", \"渡す\", \"ワタシ\", \"ワタシ\"]\nた [\"助動詞\", \"*\", \"*\", \"*\", \"特殊・タ\", \"基本形\", \"た\", \"タ\", \"タ\"]\n。 [\"記号\", \"句点\", \"*\", \"*\", \"*\", \"*\", \"。\", \"。\", \"。\"]\n```\n\n# Requirements\n\n* Swift 5.2 or later (Linux and macOS)\n\n## macOS\n\nInstall pkg-config `.pc`.\n\n```sh\n$ brew tap novi/tap\n$ brew install novi/tap/cmecab\n```\n\n# Dependencies\n\n* libmecab (only UTF8 version is supported.)\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovi%2Fmecab-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnovi%2Fmecab-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovi%2Fmecab-swift/lists"}