petname 3.1.0

Generate human readable random names. Usable as a library and from the command-line.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Language-specific petname generators.
//!
//! The default [`Petnames`][`crate::Petnames`] generator is English-shaped: it
//! relies on English having (almost) no inflection and a fixed
//! adverb–adjective–noun order, so any combination of words is well-formed.
//! Other languages need their own models to produce names that read naturally
//! to a native speaker.
//!
//! Each language is a distinct type implementing [`Generator`][`crate::Generator`].
//! There is deliberately no shared abstraction beyond that trait: where
//! commonality emerges (for example between Germanic languages) it can be
//! factored out later.

pub mod english;

#[cfg(feature = "lang-turkish")]
pub mod turkish;