anchor.diff:      return Map.fromEntries(entries.sublist(0, completions));
     }
   
  +  bool _isAlphanumeric(String token) {
  +    // Note that _numeric covers integral and decimal values whereas
  +    // _alphanumeric only matches integral values. Check both.
  +    return _alphanumeric.hasMatch(token) || _numeric.hasMatch(token);
  +  }
  +
     bool _isString(String token) {
       return token.indexOf('"') != -1 || token.indexOf("'") != -1;
     }
  
positive.code: /// Interface to TensorFlow-based Dart language model for next-token prediction.
  class LanguageModel {
    static const _defaultCompletions = 100;
    static final _numeric = RegExp(r'^\d+(.\d+)?$');
  
    final tfl.Interpreter _interpreter;
    final Map<String, int> _word2idx;
  
negative.code:       final lexeme =
            k < _idx2word.length ? _idx2word[k] : tokens[k - _idx2word.length];
        final sanitized = lexeme.replaceAll('"', '\'');
        if (k >= _idx2word.length && !_isAlphanumeric(sanitized)) {
          // Don't assign probability to punctuation by reference.
          return;
        }
  
        scores[sanitized] = (scores[sanitized] ?? 0.0) + v;
      });
  
  