prospector/processing/nlp.py
def extract_special_terms(description: str) -> Tuple[str, ...]:
    """
    Extract all words (space delimited) which presumably cannot be part of an natural language sentence.
    These are usually code fragments and names of code entities, or paths.
    """

    result = []
    for word in description.split():
        no_punctation_word = word.rstrip(").,;:?!\"'").lstrip("(")
        contains_non_word_char = re.search(r"\W", no_punctation_word)
        contains_non_initial_upper_case = re.search(r"\B[A-Z]", no_punctation_word)
        if contains_non_initial_upper_case or contains_non_word_char:
            result.append(word)
    return tuple(result)

    Extract all words (space delimited) which presumably cannot be part of an natural language sentence.
    These are usually code fragments and names of code entities, or paths.
    
Extract all words (space delimited) which presumably cannot be part of an natural language sentence.
These are usually code fragments and names of code entities, or paths.
Extract all words ( space delimited ) which presumably cannot be part of an natural language sentence . These are usually code fragments and names of code entities or paths .
def extract_special_terms(description: str) -> Tuple[str, ...]:
    result = []
    for word in description.split():
        no_punctation_word = word.rstrip(").,;:?!\"'").lstrip("(")
        contains_non_word_char = re.search(r"\W", no_punctation_word)
        contains_non_initial_upper_case = re.search(r"\B[A-Z]", no_punctation_word)
        if contains_non_initial_upper_case or contains_non_word_char:
            result.append(word)
    return tuple(result)
def extract_special_terms ( description : str ) -> Tuple [ str , ... ] : result = [ ] for word in description . split ( ) : no_punctation_word = word . rstrip ( ").,;:?!\"'" ) . lstrip ( "(" ) contains_non_word_char = re . search ( r"\W" , no_punctation_word ) contains_non_initial_upper_case = re . search ( r"\B[A-Z]" , no_punctation_word ) if contains_non_initial_upper_case or contains_non_word_char : result . append ( word ) return tuple ( result )
Extract all words (space delimited) which presumably cannot be part of an natural language sentence.
Extract all words ( space delimited ) which presumably cannot be part of an natural language sentence .
"""
    Extract all words (space delimited) which presumably cannot be part of an natural language sentence.
    These are usually code fragments and names of code entities, or paths.
    """
description
str