v0.13.8

DeclineName

functionguessedavailable in: camelot

Returns suggested declensions for a Russian name.

signaturewowlua
function DeclineName(    name: string,    gender: UnitSex?,    declensionSet: number,    namePartType: NamePartType?): string

Parameters

nametypedescription
namestringNominative form of the player's or pet's name (string)
genderUnitSex?Gender for the returned names (for declensions of the player's name, should match the player's gender; for the pet's name, should be neuter).
declensionSetnumberRanging from 1 to GetNumDeclensionSets(). Lower indices correspond to "better" suggestions for the given name.
namePartTypeNamePartType?

Returns

declinedNames · string

In wowlua's emulated client

guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Localization system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.