{"id":43102691,"url":"https://github.com/arapelle/arba-wgen","last_synced_at":"2026-01-31T17:42:22.394Z","repository":{"id":116276511,"uuid":"257105186","full_name":"arapelle/arba-wgen","owner":"arapelle","description":"A C++ library providing functions generating random words.","archived":false,"fork":false,"pushed_at":"2025-05-09T10:26:01.000Z","size":70,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-09T11:25:22.929Z","etag":null,"topics":["cmake","cpp","cpp20","cpp20-library","library","random","random-words"],"latest_commit_sha":null,"homepage":"","language":"C++","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/arapelle.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-04-19T21:23:55.000Z","updated_at":"2025-05-09T10:19:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"8a45451f-21f7-45cd-9b41-989681a48744","html_url":"https://github.com/arapelle/arba-wgen","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/arapelle/arba-wgen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arapelle%2Farba-wgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arapelle%2Farba-wgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arapelle%2Farba-wgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arapelle%2Farba-wgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arapelle","download_url":"https://codeload.github.com/arapelle/arba-wgen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arapelle%2Farba-wgen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28948605,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"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":["cmake","cpp","cpp20","cpp20-library","library","random","random-words"],"created_at":"2026-01-31T17:42:21.816Z","updated_at":"2026-01-31T17:42:22.390Z","avatar_url":"https://github.com/arapelle.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Concept #\n\nThe purpose is to provide functions generating random words (`std::string`) from a syllabary.\nA syllabary has a set of consonants, a set of vowels and a set of codas (other consonants for the last letter).\nA word is built as a sequence of syllables composed of a consonant and a vowel. \nIf the length of the generated word is odd, then a coda is added at the end of the sequence,\nor a vowel at the beginning of the sequence.\n\n```\nrandom_world(4) -\u003e cvcv (ex: babe)\nrandom_world(5) -\u003e cvcvk (ex: total)\nrandom_world(5) -\u003e vcvcv (ex: akamo)\n```\n\n# Install #\n## Requirements ##\n\nBinaries:\n- A C++20 compiler (ex: g++-14)\n- CMake 3.26 or later\n\nTesting Libraries (optional):\n- [Google Test](https://github.com/google/googletest) 1.14 or later (optional)\n\n## Clone\n\n```\ngit clone https://github.com/arapelle/arba-wgen\n```\n\n## Use with `conan`\n\nCreate the conan package.\n```\nconan create . --build=missing -c\n```\nAdd a requirement in your conanfile project file.\n```python\n    def requirements(self):\n        self.requires(\"arba-wgen/0.4.0\")\n```\n\n## Quick Install ##\nThere is a cmake script at the root of the project which builds the library in *Release* mode and install it (default options are used).\n```\ncd /path/to/arba-wgen\ncmake -P cmake/scripts/quick_install.cmake\n```\nUse the following to quickly install a different mode.\n```\ncmake -P cmake/scripts/quick_install.cmake -- TESTS BUILD Debug DIR /tmp/local\n```\n\n## Uninstall ##\nThere is a uninstall cmake script created during installation. You can use it to uninstall properly this library.\n```\ncd /path/to/installed-arba-wgen/\ncmake -P uninstall.cmake\n```\n\n# How to use\n## Example - Generate a random word\n```c++\n#include \u003carba/wgen/default_syllabary.hpp\u003e\n#include \u003ciostream\u003e\n\nint main()\n{\n    wgen::default_syllabary syllabary;\n    std::string word = syllabary.random_word(7);\n    std::cout \u003c\u003c word \u003c\u003c std::endl;\n    return EXIT_SUCCESS;\n}\n```\n\n## Example - Format a strn::string64\n```c++\n#include \u003carba/wgen/default_syllabary.hpp\u003e\n#include \u003carba/strn/io.hpp\u003e\n#include \u003ciostream\u003e\n\nint main()\n{\n    wgen::default_syllabary syllabary;\n    strn::string64 word = syllabary.format_word64(\"[cv-cvc]\");\n    std::cout \u003c\u003c word \u003c\u003c std::endl; // prints [vo-dof]\n    return EXIT_SUCCESS;\n}\n```\n\n# License\n\n[MIT License](./LICENSE.md) © arba-wgen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farapelle%2Farba-wgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farapelle%2Farba-wgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farapelle%2Farba-wgen/lists"}