SocialGraphApiProtoPartialNameOptionsParsedDisplayNameSpec

GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPartialNameOptionsParsedDisplayNameSpec


Table of Contents ▼

Jump to a specific part of the page:

Description

These options use more sophisticated logic from a location-aware name detector to parse the full name of a user into structured parts and operate on those parts. For more information on how names are parsed, see the NameOccurrence proto definition: http://google3/quality/peoplesearch/namedetector/detector/proto/name_occurrence.proto?l=50&rcl=334484707 In general, when parsing display names the following rules will apply to all specs: - Hyphenated names are broken down: "Angelina Jollie-Pit" is pre-processed as "Angelina Jollie Pitt"; - Prefixes are ignored: "Prof. Albus Dumbledore" is pre-processed as "Albus Dumbledore"; - Auxiliaries are ignored: "Luís de Camões" is pre-processed as "Luís Camões". Next ID: 8

Attributes List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. allInitialsFromParsedName (type: boolean(), default: nil)
    - Extract an initial from each parsed name. For example, "Niels Henrik David Bohr" yields "N. H. D. B.". Other special cases are treated as follows:
  2. firstInitialAndFirstLastName (type: boolean(), default: nil)
    - Show the initial of the very first name and the first last name, e.g. "Hugo Daniel Hernandez Garcia" yields "H. Hernandez".
  3. firstInitialAndVeryLastName (type: boolean(), default: nil)
    - Show the initial of the very first name and the very last name, e.g. "Ana Maria Silva" yields "A. Silva".
  4. knowledgeGraphNameShortening (type: boolean(), default: nil)
    - Shorten the display name using the Knowledge Graph name shortener (go/short-names).
  5. truncationIndicator (type: String.t, default: nil)
    - Which truncation indicator to use after each shortened part of the name. Will be ignored for the knowledge_graph_name_shortening option.
  6. veryFirstNameAndAllInitials (type: boolean(), default: nil)
    - Show the full very first name and all the other initials, e.g. "Ana Maria Silva" yields "Ana M. S.".
  7. veryFirstNameOnly (type: boolean(), default: nil)
    - Show the very first name only, e.g. "Ana Maria Silva" yields "Ana".

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPartialNameOptionsParsedDisplayNameSpec{
allInitialsFromParsedName: boolean() | nil,
firstInitialAndFirstLastName: boolean() | nil,
firstInitialAndVeryLastName: boolean() | nil,
knowledgeGraphNameShortening: boolean() | nil,
truncationIndicator: String.t() | nil,
veryFirstNameAndAllInitials: boolean() | nil,
veryFirstNameOnly: boolean() | nil
}

Function

@spec decode(struct(), keyword()) :: struct()

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPartialNameOptionsParsedDisplayNameSpec