{"id":26038886,"url":"https://github.com/folkengine/random_name_generator_rs","last_synced_at":"2026-02-21T14:02:03.573Z","repository":{"id":45649164,"uuid":"280667933","full_name":"folkengine/random_name_generator_rs","owner":"folkengine","description":"A Random Name Generator in Rust. Currently supports Demonic, Elvish, Fantasy, Goblin and Roman.","archived":false,"fork":false,"pushed_at":"2024-02-28T17:58:01.000Z","size":242,"stargazers_count":10,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-31T06:52:15.181Z","etag":null,"topics":["language","rust","rust-lang","rust-library"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/folkengine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2020-07-18T14:01:03.000Z","updated_at":"2025-10-03T13:24:35.000Z","dependencies_parsed_at":"2025-04-09T23:52:49.989Z","dependency_job_id":"7954dddf-3d97-4d1a-8b51-8f6ea7efaf93","html_url":"https://github.com/folkengine/random_name_generator_rs","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/folkengine/random_name_generator_rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folkengine%2Frandom_name_generator_rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folkengine%2Frandom_name_generator_rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folkengine%2Frandom_name_generator_rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folkengine%2Frandom_name_generator_rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/folkengine","download_url":"https://codeload.github.com/folkengine/random_name_generator_rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/folkengine%2Frandom_name_generator_rs/sbom","scorecard":{"id":406167,"data":{"date":"2025-08-11","repo":{"name":"github.com/folkengine/random_name_generator_rs","commit":"056c646d14f893222ec78bc2ab8f3b80af5067fe"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: topLevel 'contents' permission set to 'read': .github/workflows/CI.yaml:8","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yaml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/folkengine/random_name_generator_rs/CI.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yaml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/folkengine/random_name_generator_rs/CI.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yaml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/folkengine/random_name_generator_rs/CI.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yaml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/folkengine/random_name_generator_rs/CI.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yaml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/folkengine/random_name_generator_rs/CI.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yaml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/folkengine/random_name_generator_rs/CI.yaml/main?enable=pin","Warn: containerImage not pinned by hash: .devcontainer/Dockerfile:1: pin your Docker image by updating ubuntu:18.04 to ubuntu:18.04@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98","Warn: downloadThenRun not pinned by hash: .devcontainer/setup.sh:15","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T21:18:34.767Z","repository_id":45649164,"created_at":"2025-08-18T21:18:34.767Z","updated_at":"2025-08-18T21:18:34.767Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29682749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T13:29:26.630Z","status":"ssl_error","status_checked_at":"2026-02-21T13:26:50.125Z","response_time":107,"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":["language","rust","rust-lang","rust-library"],"created_at":"2025-03-07T10:38:16.405Z","updated_at":"2026-02-21T14:02:03.555Z","avatar_url":"https://github.com/folkengine.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# random_name_generator\n\n[![Crates.io](https://img.shields.io/crates/v/random_name_generator?style=flat-square)](https://crates.io/crates/random_name_generator)\n[![Crates.io](https://img.shields.io/crates/d/random_name_generator?style=flat-square)](https://crates.io/crates/random_name_generator)\n[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n[![Build and Test](https://github.com/folkengine/random_name_generator_rs/actions/workflows/CI.yaml/badge.svg)](https://github.com/folkengine/random_name_generator_rs/actions/workflows/CI.yaml)\n\nThis is a rust port of the [Ruby port](https://github.com/folkengine/random_name_generator)\nof the [Java Random Name Generator library](https://github.com/folkengine/java-random-name-generator).\n\nIt generates it's results based upon which [language file](src/languages) is specified.\nCurrently, the following are supported in both English and Russian:\n\n* Demonic - New! Syllables based on [the infernal names](https://en.wikipedia.org/wiki/The_infernal_names) and [theological demons](https://en.wikipedia.org/wiki/List_of_theological_demons)\n* Elven\n* Fantasy\n* Goblin\n* Roman\n\n_Thanks to [Zhumatiy Sergey](https://github.com/zhum), for his contribution of the Russian language\nfiles, originally in the [Ruby version](https://github.com/folkengine/random_name_generator) of this library!_\n\nThe following are in progress:\n\n* Curse\n  * [profane-words](https://github.com/zacanger/profane-words) looks like a good resource\n\n## Using the library\n\n```rust\nuse rnglib::{RNG, Language};\n\nfn main() {\n    let rng = RNG::try_from(\u0026Language::Elven).unwrap();\n    \n    let first_name = rng.generate_name();\n    let last_name = rng.generate_name();\n    \n    println!(\"{}: {} {}\", rng.name, first_name, last_name)\n}\n```\n\nIt is possible to control the number of syllables for a generated name:\n\n```rust\nuse rnglib::{RNG, Language};\n\nfn main() {\n    let rng = RNG::try_from(\u0026Language::Fantasy).unwrap();\n    let name = rng.generate_name_by_count(3);\n    println!(\"{}: {}\", rng.name, name)\n}\n```\n\nOne can also pass in custom language files:\n\n```\nuse rnglib::{RNG};\n\nfn main() {\n    let rng = RNG::new_from_file(\"src/languages/Test-tiny.txt\").unwrap();\n    let name = rng.generate_name();\n    println!(\"{}: {}\", rng.name, name)\n}\n```\n\n## Running the binary\n\nTo get information about the available options, run help.\n\nUsing cargo:\n\n```\n$\u003e cargo run -- --help\nRandom Name Generator\n\nUsage: rng [OPTIONS]\n\nOptions:\n  -d, --demonic\n  -e, --elven\n  -f, --fantasy\n  -g, --goblin\n  -r, --roman\n  -c, --curse            [UNDER CONSTRUCTION]\n  -x, --flipmode         Flipmode is the greatest! (Random language)\n      --russian          Use Russian language file, if available\n      --short            Creates shorter names\n      --raw \u003cFILE\u003e       Reads in a raw language file\n  -n, --number \u003cnumber\u003e  Number of names created. [default: 2]\n  -h, --help             Print help\n  -V, --version          Print version\n```\n\nor from the binary:\n\n```\n$\u003e rng --help\n```\n\nPassing in one of the language flags will generate a name using that Language's source file.\n\nFrom cargo:\n\n```\n$\u003e cargo run -- -g\nGoblin: zradogul bargodul\n```\n\nIt also now supports Russian language files:\n\n```\n❯ cargo run -- --roman --russian\nРимский: Дафрибуцио Дубенус\n\n❯ cargo run -- --goblin --russian\nГоблин: Краог Зрашагул\n\n❯ cargo run -- --fantasy --russian\nФантазия: Валорнен Гарлакот\n\n❯ cargo run -- --elven --russian\nЭльфийский: Латэнаэлмасан Шелиан\n```\n\nFrom the binary:\n\n```\n$\u003e rng -e\nElven: daedar latherdre\n```\n\n## Dependencies\n\n* [Anyhow](https://github.com/dtolnay/anyhow)\n* [Bitflags](https://github.com/bitflags/bitflags)\n* [Clap](https://github.com/clap-rs/clap)\n* [Clippy](https://rust-lang.github.io/rust-clippy/)\n* [rust-embed](https://github.com/pyros2097/rust-embed)\n\n## Dev Dependencies\n\n* [Criterion](https://github.com/bheisler/criterion.rs) for benchmarking\n  * [Getting Started](https://bheisler.github.io/criterion.rs/book/getting_started.html)\n* [Proptest](https://github.com/AltSysrq/proptest) - Hypothesis-like property testing for Rust\n* [Rstest](https://github.com/la10736/rstest) - Fixture-based test framework for Rust\n\n## TODO\n\n* Finish curse words\n* Add syllable weight flag\n* Add number of names flag\n\n## Further Interest\n\n* [Constructed Languages for Language Geeks](https://www.reddit.com/r/conlangs/)\n* [Expletive infixation](https://en.wikipedia.org/wiki/Expletive_infixation)\n* [Phonotactics](https://en.wikipedia.org/wiki/Phonotactics)\n* [Stanley Unwin](https://en.wikipedia.org/wiki/Stanley_Unwin_(comedian))\n* [Vulgar's Atlas](https://www.vulgarlang.com/atlas/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffolkengine%2Frandom_name_generator_rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffolkengine%2Frandom_name_generator_rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffolkengine%2Frandom_name_generator_rs/lists"}