Sometimes a character is really based on research that you do. Other times it's just based on your imagination or perhaps your conversation with the director. Or sometimes all of the above. It depends on the movie and character.
Marriage has been defined by every legislature that has ever sat in the United States from every State now 50 States the same way but now we have unelected judges altering and changing that fundamental institution.