In what ways did societal views of science and the quest for scientific truth in 1816 affect both Mary Shelley’s writing of Frankenstein and the lives of the characters within it?

Book: Frankenstein by merry shelly

the ​question to research is: In what ways did societal views of science and the quest for scientific truth in 1816 affect both Mary Shelley’s writing of Frankenstein and the lives of the characters within it?