code: def binary_names_demo_features(name):
      features = {}
      features["alwayson"] = True
      features["startswith(vowel)"] = name[0].lower() in "aeiouy"
      features["endswith(vowel)"] = name[-1].lower() in "aeiouy"
      for letter in "abcdefghijklmnopqrstuvwxyz":
          features["count(%s)" % letter] = name.lower().count(letter)
          features["has(%s)" % letter] = letter in name.lower()
          features["startswith(%s)" % letter] = (
              letter == name[0].lower()
          )
          features["endswith(%s)" % letter] = letter == name[-1].lower()
      return features
  
file_path: nltk/nltk/classify/util.py
imports: import math
  import nltk.classify.util
  from nltk.util import LazyMap
label_desc: Use image node_id 6 for calling a global function with example usage: binary_names_demo_features(name) and returns: features