Skip to contents

Identifies task-related keywords (e.g., TODO, DONE) in the content column and adds them to the lq_task column.

Usage

extract_task_keywords(
  blocks,
  keywords_of_interest = c("TODO", "DONE", "CANCELLED", "CANCELED"),
  remove_keywords = TRUE
)

Arguments

blocks

A data.table containing blocks with a content column.

keywords_of_interest

A character vector of task keywords to search for. Defaults to c("TODO", "DONE", "CANCELLED", "CANCELED").

remove_keywords

Logical. If TRUE, removes keywords from the content column after extraction. Defaults to TRUE.

Value

The updated blocks data.table with task keywords extracted and added to the lq_task column.