{"id":16747903,"url":"https://github.com/amake/srx-languagetool-ruby","last_synced_at":"2025-10-19T15:24:41.355Z","repository":{"id":59156227,"uuid":"338582700","full_name":"amake/srx-languagetool-ruby","owner":"amake","description":"SRX segmentation rules from LanguageTool, for Ruby","archived":false,"fork":false,"pushed_at":"2025-03-28T12:36:57.000Z","size":105,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T09:41:40.600Z","etag":null,"topics":["languagetool","ruby","segmentation","srx"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/srx-languagetool","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amake.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"amake"}},"created_at":"2021-02-13T13:38:03.000Z","updated_at":"2025-03-28T12:36:59.000Z","dependencies_parsed_at":"2025-02-17T10:41:48.813Z","dependency_job_id":null,"html_url":"https://github.com/amake/srx-languagetool-ruby","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amake%2Fsrx-languagetool-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amake%2Fsrx-languagetool-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amake%2Fsrx-languagetool-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amake%2Fsrx-languagetool-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amake","download_url":"https://codeload.github.com/amake/srx-languagetool-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248228635,"owners_count":21068731,"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":["languagetool","ruby","segmentation","srx"],"created_at":"2024-10-13T02:11:14.266Z","updated_at":"2025-10-19T15:24:36.292Z","avatar_url":"https://github.com/amake.png","language":"Ruby","funding_links":["https://github.com/sponsors/amake"],"categories":[],"sub_categories":[],"readme":"# LanguageTool SRX for Ruby\n\nThis gem provides SRX segmentation rules from\n[LanguageTool](https://languagetool.org/). It is a companion to\n[srx-ruby](https://github.com/amake/srx-ruby), which implements an SRX engine to\napply these rules for segmenting text.\n\nFor details, please see [srx-ruby](https://github.com/amake/srx-ruby).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'srx-languagetool'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install srx-languagetool\n\n## Usage\n\nFor detailed usage information about the engine, please see\n[srx-ruby](https://github.com/amake/srx-ruby).\n\n```ruby\nrequire 'srx/languagetool'\n\ndata = Srx::Data.languagetool\nengine = Srx::Engine.new(data)\nengine.segment('Hi. How are you?', language: 'en') #=\u003e [\"Hi.\", \" How are you?\"]\n```\n\n**Note:** To split on single line breaks, append the suffix `_one` to the\nlanguage. To split only on two or more consecutive line breaks, append `_two`.\n\n```ruby\nengine.segment(\"Hi. \\n\\n\\nHow are you?\", language: 'en')\n#=\u003e [\"Hi. \\n\\n\\nHow are you?\"]\nengine.segment('Hi. \\n\\n\\nHow are you?', language: 'en_one')\n#=\u003e [\"Hi. \\n\", \"\\n\", \"\\n\", \"How are you?\"]\nengine.segment('Hi. \\n\\n\\nHow are you?', language: 'en_two')\n#=\u003e [\"Hi. \\n\\n\\n\", \"How are you?\"]\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run\n`rake test` to run the tests. You can also run `bin/console` for an interactive\nprompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To\nrelease a new version, update the version number in `version.rb`, and then run\n`bundle exec rake release`, which will create a git tag for the version, push\ngit commits and the created tag, and push the `.gem` file to\n[rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at\nhttps://github.com/amake/srx-languagetool.\n\n## License\n\nThe gem is available as open source under the terms of the [GNU Lesser General\nPublic License, version 2.1](https://opensource.org/licenses/LGPL-2.1).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famake%2Fsrx-languagetool-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famake%2Fsrx-languagetool-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famake%2Fsrx-languagetool-ruby/lists"}