Skip to content

Commit

Permalink
feat: add randNoun and randAdjective (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent authored Jan 8, 2025
1 parent fc1f6ba commit c4f4ffc
Show file tree
Hide file tree
Showing 9 changed files with 473 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Create massive amounts of fake data in the browser and NodeJS. Tree Shakeable &

</p>

&nbsp;203 Functions
&nbsp;205 Functions
&nbsp;Tree Shakable
&nbsp;Fully Typed
&nbsp;Factory Functions
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ title: Getting Started
/>
</p>

&nbsp;203 Functions
&nbsp;205 Functions
&nbsp;Tree Shakable
&nbsp;Fully Typed
&nbsp;Entity Functions
Expand Down
2 changes: 2 additions & 0 deletions packages/falso/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export { randAbbreviation } from './lib/abbreviation';
export { randAccessory } from './lib/accessory';
export { randAccount } from './lib/account';
export { randAdjective } from './lib/adjective';
export { randAlpha } from './lib/alpha';
export { randAlphaNumeric } from './lib/alpha-numeric';
export { randAmericanFootballTeam } from './lib/american-football-team';
Expand Down Expand Up @@ -116,6 +117,7 @@ export { randMovieCharacter } from './lib/movie-character';
export { randMusicGenre } from './lib/music-genre';
export { randNearbyGPSCoordinate } from './lib/nearby-gpscoordinate';
export { randNumber } from './lib/number';
export { randNoun } from './lib/noun';
export { randOAuthProvider } from './lib/oauth-provider';
export { randOctal } from './lib/octal';
export { randOrdinalDirection } from './lib/ordinal-direction';
Expand Down
203 changes: 203 additions & 0 deletions packages/falso/src/lib/adjective.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
{
"data": [
"Awesome",
"Rustic",
"Small",
"Gorgeous",
"Fantastic",
"Sleek",
"Intelligent",
"Unbranded",
"Refined",
"Licensed",
"Generic",
"Practical",
"Ergonomic",
"Handcrafted",
"Tasty",
"Handmade",
"Incredible",
"Delightful",
"Unique",
"Stylish",
"Modern",
"Sophisticated",
"Charming",
"Classic",
"Innovative",
"Elegant",
"Compact",
"Durable",
"Vivid",
"Reliable",
"Bright",
"Versatile",
"Bold",
"Simple",
"Luxurious",
"Warm",
"Cozy",
"Magical",
"Sturdy",
"Trendy",
"Efficient",
"Powerful",
"Vibrant",
"Graceful",
"Flawless",
"Distinctive",
"Lively",
"Dynamic",
"Alluring",
"Captivating",
"Radiant",
"Cheerful",
"Playful",
"Breathtaking",
"Inviting",
"Serene",
"Crisp",
"Soft",
"Smooth",
"Harmonious",
"Precise",
"Delicate",
"Exquisite",
"Majestic",
"Coherent",
"Polished",
"Peaceful",
"Luminous",
"Timeless",
"Rustic",
"Venerable",
"Sparkling",
"Futuristic",
"Creative",
"Bold",
"Zesty",
"Artistic",
"Cheery",
"Optimistic",
"Glowing",
"Dramatic",
"Mysterious",
"Rich",
"Intriguing",
"Robust",
"Neat",
"Whimsical",
"Unusual",
"Chic",
"Deliberate",
"Inspired",
"Fanciful",
"Energetic",
"Remarkable",
"Distinguished",
"Zany",
"Eclectic",
"Adaptable",
"Comfortable",
"Healthy",
"Affordable",
"Reliable",
"Artful",
"Focused",
"Minimalist",
"Groundbreaking",
"Subtle",
"Enduring",
"Mature",
"Sensible",
"Essential",
"Dependable",
"Thrifty",
"Meticulous",
"Balanced",
"Graceful",
"Adorable",
"Quaint",
"Lush",
"Bubbly",
"Vast",
"Energetic",
"Imaginative",
"Transparent",
"Natural",
"Classic",
"Festive",
"Dynamic",
"Tough",
"Inspired",
"Adaptive",
"Inventive",
"Clever",
"Witty",
"Youthful",
"Empowering",
"Amusing",
"Relaxing",
"Wholesome",
"Bold",
"Charismatic",
"Comprehensive",
"Savvy",
"Indulgent",
"Spontaneous",
"Exceptional",
"Opulent",
"Thorough",
"Precious",
"Astounding",
"Radiant",
"Dashing",
"Profound",
"Ethical",
"Magnetic",
"Exuberant",
"Refreshing",
"Breezy",
"Humble",
"Organic",
"Friendly",
"Loyal",
"Motivated",
"Enthusiastic",
"Insightful",
"Holistic",
"Jubilant",
"Vigorous",
"Inventive",
"Unstoppable",
"Intuitive",
"Flexible",
"Courageous",
"Magnetic",
"Fair",
"Precious",
"Charming",
"Diligent",
"Vivid",
"Earthy",
"Ample",
"Stunning",
"Introspective",
"Gleaming",
"Innovative",
"Nostalgic",
"Lavish",
"Sublime",
"Hearty",
"Posh",
"Graceful",
"Uplifting",
"Heroic",
"Ambitious",
"Plush",
"Affable",
"Brilliant",
"Endearing",
"Genuine"
]
}
22 changes: 22 additions & 0 deletions packages/falso/src/lib/adjective.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { FakeOptions, fake } from './core/core';
import { data } from './adjective.json';

/**
* Generate a random adjective.
*
* @category text
*
* @example
*
* randAdjective()
*
* @example
*
* randAdjective({ length: 10 })
*
*/
export function randAdjective<Options extends FakeOptions = never>(
options?: Options
) {
return fake(data, options);
}
Loading

0 comments on commit c4f4ffc

Please sign in to comment.