{"id":13835653,"url":"https://github.com/akihikodaki/cld3-ruby","last_synced_at":"2025-05-16T05:04:14.447Z","repository":{"id":44943729,"uuid":"90323321","full_name":"akihikodaki/cld3-ruby","owner":"akihikodaki","description":"cld3-ruby is an interface of Compact Language Detector v3 (CLD3) for Ruby.","archived":false,"fork":false,"pushed_at":"2024-11-07T06:12:31.000Z","size":87,"stargazers_count":79,"open_issues_count":1,"forks_count":21,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-16T05:04:06.675Z","etag":null,"topics":["chrome","ffi","rubygems"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/akihikodaki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"akihikodaki"}},"created_at":"2017-05-05T01:07:19.000Z","updated_at":"2025-04-12T13:13:32.000Z","dependencies_parsed_at":"2025-01-04T00:11:47.041Z","dependency_job_id":"2ee8e88f-bcda-4484-a917-2447ea6688fc","html_url":"https://github.com/akihikodaki/cld3-ruby","commit_stats":{"total_commits":109,"total_committers":12,"mean_commits":9.083333333333334,"dds":0.6422018348623852,"last_synced_commit":"652e289bafdaf81065240bef0841362baecbf6f7"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akihikodaki%2Fcld3-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akihikodaki%2Fcld3-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akihikodaki%2Fcld3-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akihikodaki%2Fcld3-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akihikodaki","download_url":"https://codeload.github.com/akihikodaki/cld3-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254471061,"owners_count":22076585,"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":["chrome","ffi","rubygems"],"created_at":"2024-08-04T14:01:07.613Z","updated_at":"2025-05-16T05:04:14.427Z","avatar_url":"https://github.com/akihikodaki.png","language":"Ruby","funding_links":["https://github.com/sponsors/akihikodaki"],"categories":["Ruby"],"sub_categories":[],"readme":"# cld3-ruby\ncld3-ruby is an interface of [Compact Language Detector v3 (CLD3)](https://github.com/google/cld3) for Ruby.\n\n## Usage\n\n```ruby\nrequire 'cld3'\n\ncld3 = CLD3::NNetLanguageIdentifier.new(0, 1000)\n\ncld3.find_language(\"こんにちは\") # =\u003e #\u003cstruct Struct::Result language=:ja, probability=1.0, reliable?=true, proportion=1.0, byte_ranges=[]\u003e\n\ncld3.find_language(\"This is a pen.\") # =\u003e #\u003cstruct Struct::Result language=:en, probability=0.9999408721923828, reliable?=true, proportion=1.0, byte_ranges=[]\u003e\n\ncld3.find_language(\"здравствуйте\") # =\u003e #\u003cstruct Struct::Result language=:ru, probability=0.3140212297439575, reliable?=false, proportion=1.0, byte_ranges=[]\u003e\n```\n\n## Installation\n### Prerequisites\n* [Bundler](http://bundler.io/)\n* C++ compiler\n* [RubyGems](https://rubygems.org/)\n\n### Instructions\nI (Akihiko Odaki) recommend to setup this library installing via `gem`.\n\nYou can also build this library by yourself. `Rakefile` includes a Rake task to\nput this code into files buildable as a gem. Build a gem with `bundle exec rake`\ncommand.\n\n### Platform-specific information\n\n#### FreeBSD\nFreeBSD port is available as `rubygem-cld3` in `textproc` category.\n\nhttps://svnweb.freebsd.org/ports/head/textproc/rubygem-cld3/\n\n### Troubleshooting\n`gem install cld3` triggers native library building. If it fails, it is likely\nthat some required facilities are missing. Make sure C++ compiler is installed.\nI recommend [GCC](https://gcc.gnu.org/) as a C++ compiler.\n\nIf you cannot identify the cause of your problem, run spec of this library and\nsee whether the problem is reproducible with it or not. Spec is not included in\nthe gem, so clone the source code repository and then run\n`bundle exec rake spec`.\nThe source code repository is at\nhttps://github.com/akihikodaki/cld3-ruby.\n\nIn case you cannot solve your problem by yourself and cannot help abandoning or\nfind an issue in this library, please open an issue at\nhttps://github.com/akihikodaki/cld3-ruby/issues.\n\nIf you found an issue and managed to fix it and agree to share the fix under\n[Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0), please open a pull\nrequest at https://github.com/akihikodaki/cld3-ruby/pulls. Your contribution\nwould be appreciated by other users and recorded with Git.\n\n## Versioning\n\nThe version has 3 parts: major, minor, and patch. They are joined with . as\ndelimiters in the order.\n\nThe increment of the major version and the minor version indicates it can involve\nany change.\n\nThe increment of the patch version indicates there is no change of the supported\nlanguages and no change of the existing APIs.\n\n## Contact\n\nTo ask questions or report issues please open issues at\nhttps://github.com/akihikodaki/cld3-ruby/issues.\n\n## Credits\n\nThis program was written by Akihiko Odaki and other contributors. CLD3 was\nwritten by its own authors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakihikodaki%2Fcld3-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakihikodaki%2Fcld3-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakihikodaki%2Fcld3-ruby/lists"}