Class: NounType

NounType

NounType class.

Constructor

new NounType(num, name) → {NounType}

The Noun Type class.
Parameters:
Name Type Description
num number One-based number.
name string Name.
Version:
  • 2017-03-27
Author:
Source:
Returns:
Noun Type.
Type
NounType

Members

name

Name of the noun type.
Source:

nouns

Array of nouns of this noun type.
Source:

num

One-based number of the noun type.
Source:

Methods

addNoun(name, title) → {Noun}

Creates and appends the new noun to the nouns array of this noun type.
Parameters:
Name Type Description
name string Name.
title string Title.
Source:
Returns:
Noun.
Type
Noun

getNoun(num) → {Noun}

Returns the noun with the given one-based number of this noun type.
Parameters:
Name Type Description
num num One-based number of the noun.
Source:
Returns:
Noun.
Type
Noun

reset()

Resets the nouns of this noun type.
Source: