SocialGraphApiProtoPartialNameOptionsParsedDisplayNameSpec

AI Overview😉

  • The potential purpose of this module is to parse and normalize user display names, breaking them down into structured parts and ignoring certain prefixes, suffixes, and auxiliaries. This allows for more accurate and consistent name matching and searching.
  • This module could impact search results by influencing how user names are matched and ranked. For example, if a user searches for "Albus Dumbledore", the module's preprocessing rules would ignore the "Prof." prefix, ensuring that relevant results for "Albus Dumbledore" are returned. This could lead to more accurate and relevant search results, especially when searching for people with complex or nuanced names.
  • To be more favorable for this function, a website could ensure that user display names are accurately and consistently formatted, using standard naming conventions and avoiding unnecessary prefixes or suffixes. Additionally, websites could provide additional metadata or context about user names, such as separating first and last names, to help the module more accurately parse and normalize display names.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

GoogleApi.ContentWarehouse.V1.Model.SocialGraphApiProtoPartialNameOptionsParsedDisplayNameSpec (google_api_content_warehouse v0.4.0)

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

  • 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:
  • 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".
  • 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".
  • knowledgeGraphNameShortening (type: boolean(), default: nil) - Shorten the display name using the Knowledge Graph name shortener (go/short-names).
  • 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.
  • 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.".
  • veryFirstNameOnly (type: boolean(), default: nil) - Show the very first name only, e.g. "Ana Maria Silva" yields "Ana".

Summary

Types

t()

Functions

decode(value, options)

Unwrap a decoded JSON object into its complex fields.

Types

Link to this type

t()

@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
  }

Functions

Link to this function

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.