Skip to main content

extract_code_references

Function extract_code_references 

Source
pub fn extract_code_references(claim: &str) -> Vec<String>
Expand description

Extract potential code identifiers from a natural-language claim.

Looks for:

  • Backtick-quoted identifiers (e.g. `foo_bar`)
  • snake_case tokens
  • CamelCase tokens
  • SCREAMING_CASE tokens

Common English stop-words are filtered out.