Skip to main content

Food

Module for generating food-related data.

Overview

This module provides methods to generate various food-related information, such as items on a menu. To generate the name of a dish, use dish() and to generate a long description for a dish use description(). Note that these will not correspond with each other. You can also generate individual components of a dish such as spices, vegetables, meats, fruits, or generic ingredients.


adjective

Generates a random dish adjective.

Returns: string

Examples

{{$food.adjective}}  // 'crispy'

description

Generates a random dish description.

Returns: string

Examples

{{$food.description}} // 'Tenderly braised duck in a rich curry and rhubarb sauce, served with a side of creamy fresh chillies.'

dish

Generates a random dish name.

Returns: string

Examples

{{$food.dish}} // 'Salmon Nigiri'

ethnicCategory

Generates a random food's ethnic category.

Returns: string

Examples

{{$food.ethnicCategory}} // 'Persian'

fruit

Generates a random fruit name.

Returns: string

Examples

{{$food.fruit}} // 'honeydew melon'

ingredient

Generates a random ingredient name.

Returns: string

Examples

{{$food.ingredient}} // 'garam masala'

meat

Generates a random meat

Returns: string

Examples

{{$food.meat}} // 'chicken'

spice

Generates a random spice name.

Returns: string

Examples

{{$food.spice}} // 'cardamom'

vegetable

Generates a random vegetable name.

Returns: string

Examples

{{$food.vegetable}} // 'radicchio'