{"id":13858631,"url":"https://github.com/javierhonduco/nebrija","last_synced_at":"2025-08-14T18:36:52.228Z","repository":{"id":70936695,"uuid":"11264178","full_name":"javierhonduco/nebrija","owner":"javierhonduco","description":"A simple Ruby wrapper for the official Spanish dictionary (RAE)","archived":true,"fork":false,"pushed_at":"2017-12-23T18:46:30.000Z","size":115,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T20:07:40.390Z","etag":null,"topics":["api","dictionary","rae","spanish"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javierhonduco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2013-07-08T20:12:23.000Z","updated_at":"2025-03-25T10:48:38.000Z","dependencies_parsed_at":"2024-02-17T01:15:16.619Z","dependency_job_id":"04e985e1-8c3a-4ae8-beba-7da4c0c77593","html_url":"https://github.com/javierhonduco/nebrija","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/javierhonduco/nebrija","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierhonduco%2Fnebrija","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierhonduco%2Fnebrija/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierhonduco%2Fnebrija/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierhonduco%2Fnebrija/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javierhonduco","download_url":"https://codeload.github.com/javierhonduco/nebrija/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierhonduco%2Fnebrija/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270466109,"owners_count":24588789,"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","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"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":["api","dictionary","rae","spanish"],"created_at":"2024-08-05T03:02:15.514Z","updated_at":"2025-08-14T18:36:52.189Z","avatar_url":"https://github.com/javierhonduco.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"## Nebrija: A rae parser\n\n[![Build Status](https://travis-ci.org/javierhonduco/nebrija.svg?branch=master)](https://travis-ci.org/javierhonduco/nebrija)\n[![Gem Version](https://badge.fury.io/rb/nebrija.svg)](https://badge.fury.io/rb/nebrija)\n[![Code Climate](https://img.shields.io/codeclimate/github/javierhonduco/nebrija.svg)](https://codeclimate.com/github/javierhonduco/nebrija)\n\n\n### Installing\n```bash\n$ gem install nebrija\n```\n\n### Usage\n```ruby\nrequire 'nebrija'\nres = Rae.search('word/id') # e.g. Rae.search('amigo')\n\nputs res # prints the results\n```\n\n`Rae#search` returns a hash where the key `status` can be [`error`|`success`].\n\nIf the request is successful, the key `type` indicates whether the result type is a single word or multiple  with [`single`|`multiple`].\n\nThe response data can be found in the `response` key which holds a hash with all the information.\n\nAn example on how to iterate over the info can be seen in the [CLI code](https://github.com/javierhonduco/nebrija/blob/master/lib/nebrija/cli.rb) file:\n\nTypeahead queries supported too! `Rae#typeahed(word)` returns an array of the suggestions.\n\n### CLI\n```bash\n$ nebrija \u003cword\u003e\n```\n\nIf you feel it is too cumbersome to type, you can add an alias :)\n\n### Projects using this gem\n* [Rae downloader](https://github.com/raul/rae-downloader) by [@raul](https://github.com/raul)\n* [Dulcinea: a nebrija frontend](https://github.com/javierhonduco/dulcinea)\n\n### Contributing\nFeel free to submit any issue or PR 😃.\n\nIn order to test your changes:\n```bash\n# you can run the tests\n$ bundle exec rake [test]\n# run the CLI\n$ bundle exec nebrija word-to-be-searched\n# run the \"debug\" CLI, which pretty prints the resulting hash\n$ bundle exec bin/debug word-to-be-searched\n```\n\nAdditionally, you can get some debug traces in stderr via the `NEBRIJA_DEBUG` environment variable.\n\nWhen set, it will output the requested word, the generated URL, and the HTTP status code that it got from the server.\nIf you wish to see the returned body's output as well, you can set it to `2`.\n\nThe tests are [mocked](https://en.wikipedia.org/wiki/Mock_object) so we run our tests using some already downloaded answers from rae.es. However, in some cases, one would like to bypass the mocks and use the real webpages instead. You can achieve that by setting the `NO_MOCK` env var when running your tests.\n\nIt was added as part as the continuous integrations testing with Travis. They introduced an amazing feature, 💛💚💙💖[scheduled builds](https://blog.travis-ci.com/2016-12-06-the-crons-are-here). Given that rae.es changes the way its [auth method](https://github.com/javierhonduco/nebrija/blob/086f1cc0341cad538b9c72406fe76bbb6d5d4394/lib/nebrija/rae.rb#L38-L49) works from time to time, the tests without being mocked are run in a daily basis so we know if something is broken.\n### TODO\n* Make the parser more readable.\n* Improve the API.\n* Think on multiple responses and how to address them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavierhonduco%2Fnebrija","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavierhonduco%2Fnebrija","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavierhonduco%2Fnebrija/lists"}