-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
69 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import type { Word } from './types'; | ||
/** | ||
* Get a list of all words or Get a list of words filtered by args | ||
* @param {string | undefined} args | ||
* @param {string | undefined} args filter arguments e.g., 'word has kx' or 'word has kx and pos is vin.' | ||
* @returns {Promise<Word[]>} | ||
*/ | ||
export declare function list(args?: string): Promise<Word[]>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
import type { AdjectiveMode, Dialect, NameEnding, NounMode } from './types'; | ||
/** | ||
* Generate a single Na'vi first name | ||
* @param {string} n number of names to generate | ||
* @param {string} s number of syllables per name | ||
* @param {Dialect} dialect dialect to use | ||
* @param {string} n number of names to generate [1-50] | ||
* @param {string} s number of syllables per name [0-4] | ||
* @param {Dialect} dialect dialect to use ('forest' | 'reef') | ||
* @returns {Promise<string>} | ||
*/ | ||
export declare function nameSingle(n: string, s: string, dialect: Dialect): Promise<string>; | ||
/** | ||
* Generate a Na'vi full name | ||
* @param {NameEnding} ending 'ite for female, 'itan for male | ||
* @param {string} n number of names to generate | ||
* @param {string} s1 number of syllables in first name | ||
* @param {string} s2 number of syllables in family name | ||
* @param {string} s3 number of syllables in parent's name | ||
* @param {Dialect} dialect dialect to use | ||
* @param {string} n number of names to generate [1-50] | ||
* @param {string} s1 number of syllables in first name [0-4] | ||
* @param {string} s2 number of syllables in family name [0-4] | ||
* @param {string} s3 number of syllables in parent's name [0-4] | ||
* @param {Dialect} dialect dialect to use ('forest' | 'reef') | ||
* @returns {Promise<string>} | ||
*/ | ||
export declare function nameFull(ending: NameEnding, n: string, s1: string, s2: string, s3: string, dialect: string): Promise<string>; | ||
/** | ||
* Generate a Na'vi name with alu | ||
* @param {string} n number of names to generate | ||
* @param {string} s number of syllables in first name | ||
* @param {string} n number of names to generate [1-50] | ||
* @param {string} s number of syllables in first name [0-4] | ||
* @param {NounMode} nm noun mode | ||
* @param {AdjectiveMode} am adjective mode | ||
* @param {Dialect} dialect dialect to use | ||
* @param {Dialect} dialect dialect to use ('forest' | 'reef') | ||
* @returns {Promise<string>} | ||
*/ | ||
export declare function nameAlu(n: string, s: string, nm: NounMode, am: AdjectiveMode, dialect: Dialect): Promise<string>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import type { Word } from './types'; | ||
/** | ||
* Get given number of random words | ||
* Get given number of random words, optionally filtered by args | ||
* @param {number} n number of random words to get | ||
* @param {string | undefined} args arguments to filter by (e.g., "word has tx") | ||
* @param {string | undefined} args filter arguments e.g., 'word has kx' or 'word has kx and pos is vin.' | ||
* @returns {Promise<Word[]>} | ||
*/ | ||
export declare function random(n: number, args?: string): Promise<Word[]>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters