Check if a normalised token is one of the generic types (I/S/N/T). * These carry no structural info — used to compute trigram weight. */
| 117 | /* Check if a normalised token is one of the generic types (I/S/N/T). |
| 118 | * These carry no structural info — used to compute trigram weight. */ |
| 119 | static bool is_normalised_token(const char *tok) { |
| 120 | return tok[0] != '\0' && tok[SKIP_ONE] == '\0' && |
| 121 | (tok[0] == 'I' || tok[0] == 'S' || tok[0] == 'N' || tok[0] == 'T'); |
| 122 | } |
| 123 | |
| 124 | /* Compute structural weight of a trigram: count of non-normalised tokens (0-3). |
| 125 | * Weight 0 = pure data manipulation (noise), weight 3 = rich control flow (signal). */ |
no outgoing calls
no test coverage detected