original_docstring: Generate and rank the alternate TLD replacements for the domain name.
  
          Parameters:
          domain      The domain name being analyzed
          naked       The "naked" domain name (name without the TLD) being analyzed
          tld         The top level domain (TLD) of the domain name being analyzed
          
docstring: Generate and rank the alternate TLD replacements for the domain name.
  Parameters:
  domain      The domain name being analyzed
  naked       The "naked" domain name (name without the TLD) being analyzed
  tld         The top level domain (TLD) of the domain name being analyzed
docstring_tokens: Generate and rank the alternate TLD replacements for the domain name . Parameters : domain The domain name being analyzed naked The " naked " domain name ( name without the TLD ) being analyzed tld The top level domain ( TLD ) of the domain name being analyzed
code: def generate_alt_tlds(self,domain,naked,tld):
          """Generate and rank the alternate TLD replacements for the domain name.
  
          Parameters:
          domain      The domain name being analyzed
          naked       The "naked" domain name (name without the TLD) being analyzed
          tld         The top level domain (TLD) of the domain name being analyzed
          """
          # Preferred TLDs: .com, .net, .org, .biz, .company
          # Note: The .co and .cm TLDs are not supported by Route 53:
          #   https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html#C
          domains = []
          alt_tlds = [
              ('com',1.0),
              ('co',0.9),
              ('cm',0.9),
              ('net',0.8),
              ('org',0.8),
              ('io',0.5),
              ('biz',0.5),
              ('company',0.5),
          ]
          for alt_tld,rank in alt_tlds:
              alt = '%s.%s' % (naked,alt_tld)
              domains.append((alt,rank))
          return domains
code_tokens: def generate_alt_tlds ( self , domain , naked , tld ) : domains = [ ] alt_tlds = [ ( 'com' , 1.0 ) , ( 'co' , 0.9 ) , ( 'cm' , 0.9 ) , ( 'net' , 0.8 ) , ( 'org' , 0.8 ) , ( 'io' , 0.5 ) , ( 'biz' , 0.5 ) , ( 'company' , 0.5 ) , ] for alt_tld , rank in alt_tlds : alt = '%s.%s' % ( naked , alt_tld ) domains . append ( ( alt , rank ) ) return domains
short_docstring: Generate and rank the alternate TLD replacements for the domain name.
short_docstring_tokens: Generate and rank the alternate TLD replacements for the domain name .
comment: """Generate and rank the alternate TLD replacements for the domain name.
  
          Parameters:
          domain      The domain name being analyzed
          naked       The "naked" domain name (name without the TLD) being analyzed
          tld         The top level domain (TLD) of the domain name being analyzed
          """$SEP$# Preferred TLDs: .com, .net, .org, .biz, .company$SEP$# Note: The .co and .cm TLDs are not supported by Route 53:$SEP$#   https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html#C