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?

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?