whole_func_string: function check(value, double) {
      var state = memory.state[value]
      var corrected
  
      if (state !== Boolean(state)) {
        result.push(value)
  
        corrected = form(context, value)
        state = corrected && !flag(flags, noSuggestType, data[corrected])
  
        memory.state[value] = state
  
        if (state) {
          memory.weighted[value] = double ? 10 : 0
          memory.suggestions.push(value)
        }
      }
  
      if (state) {
        memory.weighted[value]++
      }
    }
func_code_string: function check(value, double) {
      var state = memory.state[value]
      var corrected
  
      if (state !== Boolean(state)) {
        result.push(value)
  
        corrected = form(context, value)
        state = corrected && !flag(flags, noSuggestType, data[corrected])
  
        memory.state[value] = state
  
        if (state) {
          memory.weighted[value] = double ? 10 : 0
          memory.suggestions.push(value)
        }
      }
  
      if (state) {
        memory.weighted[value]++
      }
    }
func_documentation_string: Check and handle a generated value.