{"id":26630093,"url":"https://github.com/fluorine/conlangwordgenerator","last_synced_at":"2025-04-10T15:22:56.687Z","repository":{"id":9080266,"uuid":"10854201","full_name":"fluorine/ConlangWordGenerator","owner":"fluorine","description":"A statistical random words generator for constructed languages.","archived":false,"fork":false,"pushed_at":"2013-08-12T02:34:31.000Z","size":180,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T13:17:07.122Z","etag":null,"topics":["conlangs","constructed-language","esperanto","language","linguistics","phonemes","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"joshbuchea/HEAD","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluorine.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}},"created_at":"2013-06-21T22:37:07.000Z","updated_at":"2024-05-01T01:39:21.000Z","dependencies_parsed_at":"2022-09-06T08:10:30.864Z","dependency_job_id":null,"html_url":"https://github.com/fluorine/ConlangWordGenerator","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluorine%2FConlangWordGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluorine%2FConlangWordGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluorine%2FConlangWordGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluorine%2FConlangWordGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluorine","download_url":"https://codeload.github.com/fluorine/ConlangWordGenerator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248243421,"owners_count":21071054,"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":["conlangs","constructed-language","esperanto","language","linguistics","phonemes","ruby"],"created_at":"2025-03-24T13:17:13.578Z","updated_at":"2025-04-10T15:22:56.668Z","avatar_url":"https://github.com/fluorine.png","language":"Ruby","readme":"ConlangWordGenerator, v0.3.1\n============================\n**Now it's a gem!**\n\nDescription\n-----------\nThis gem allows the user to generate words for\nconstructed languages, given a LANG file that\ndescribes the language. It can also be useful\nfor linguistics to study and generate valid words\nfrom a descripted language.\n\nThe `*.lang` file must include sets of phonemes with \ntheir individual probability weight, and a grammatical\nexpression, to describe how to generate words for the\ndescribed language.\n\nInstructions\n------------\nUsage as a **command line executable**:\n\n\tconlang \u003cwords count\u003e '\u003cLANG file\u003e'\n\nThis command produces an `output-\u003cname\u003e.txt`\nfile that includes a list of the generated words,\nseparated by newlines.\n\nUsage as a **gem**:\n\n\trequire 'conlang'\n\n\t# Path to LANG file, as constructor.\n\tx = WordGenerator.new(\"tokipona.lang\")\n\n\t# Print ten generated words as\n\t# an array of strings.\n\tp x.get_words(10)\n\nThere are `*.lang` files as examples at `lang-examples` \ndirectory of this [project's source](https://github.com/fluorine/ConlangWordGenerator).\n\nCustom .lang files\n------------------\nYou must create your own .lang files to generate random \nwords for your constructed languages.\n\nThere files include a simple lightweight markup language\nto describe sets of phonemes, their probability, replacements\n(for exceptions) and a simple regular grammatical expression.\n\nYou can learn how to create LANG files [**here**](LANG_FILES_DOC.md).\nAgain, examples at `lang-examples` directory can help you a lot.\n\nThe class `WordGenerator` takes a path to a valid `*.lang`\nfile to produce a generator of words, as described previously\nin the **Instructions** section.\n\nRoot-level identifiers\n----------------------\n- **WordGenerator** - Main class\n- **ConlangWordGenerator** - Namespace module for the gem\n- Exceptions\n   - **LangFileError** \u003c StandardError, for LANG files\n   - **LangFileIOError** \u003c LangFileError\n   - **LangSyntaxError** \u003c LangFileError","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluorine%2Fconlangwordgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluorine%2Fconlangwordgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluorine%2Fconlangwordgenerator/lists"}