Open r002 opened 3 years ago
Instead of using regex during the processing phase, refactor the code to parse the log entry on input. Parsing upfront offers several advantages:
command
activity
wake up
sleep
return
go for
depart
depart for
take break
nap
take nap
finish
start
eat
begin
watch
mono-commands
brush teeth
Instead of using regex during the processing phase, refactor the code to parse the log entry on input.
Parsing upfront offers several advantages:
command
is invalid, reject.command
andactivity
as their own fields per log in Firestore. This will allow us to use/analyze them easier later.Commands that resolve:
wake up
➡️sleep
return
➡️go for
depart
depart for
take break
nap
take nap
finish
➡️start
eat
begin
watch
Supported
mono-commands
:brush teeth