defoe icon indicating copy to clipboard operation
defoe copied to clipboard

Differentiate hyphens from subordinate clauses

Open mikej888 opened this issue 6 years ago • 0 comments

defoe/papers/article.py has:

@property
def words_string(self):
    """ 
    Return the full text of the article as a string. Remove all hyphens.
    This merges hyphenated word by may cause problems with subordinate
    clauses (The sheep - the really loud one - had just entered my office).
    """
    return ' '.join(self.words).replace(' - ', '')

Investigate if it is possible to differentiate hyphens from subordinate clauses.

mikej888 avatar Jan 22 '19 16:01 mikej888