Pseudocode For Dynamic Dialogue
February 15, 2020•242 words
Ex of natural dialogue:
"#{}: I am #{botname}, is your name #{yourname}."
create dialogue based on name script
read lines from data files
create dialogue line based on natural language flow
append new dialogue line over old name script
do bayesian filter to determine sensibility
output name script from newlines
create dialogue based on pets script
read lines from data files
create dialogue line based on natural language flow
append new dialogue line over old pet script
do bayesian filter to determine sensibility
output pet script from newlines
create dialogue based on hobbies script
read lines from data files
create dialogue line based on natural language flow
append new dialogue line over old hobbies script
do bayesian filter to determine sensibility
output hobbies script from newlines
create dialogue based on jobs script
read lines from data files
create dialogue line based on natural language flow
append new dialogue line over old pet script
do bayesian filter to determine sensibility
output jobs script from newlines
create dialogue based on skills script
read lines from data files
create dialogue line based on natural language flow
append new dialogue line over old skills script
do bayesian filter to determine sensibility
output skills script from newlines
create dialogue based on weather script
read lines from data files
create dialogue line based on natural language flow
append new dialogue line over old weather script
do bayesian filter to determine sensibility
output weather script from newlines