window phrase extractions, need to check edge cases