It's one of the most cherished legends of the American indie: A socially retarded ugly duck, despite making no effort to regulate his glaring emotional hang-ups, is discovered as a swan by a clearly out-of-his-league girl who loves him just the way he is. In this case, in a burst of literary Weird Science, the girl (Zoe Kazan) is the fictional invention of one-hit novelist Calvin (Paul Dano) miraculously made flesh, exactly the sort of preciously troubled, whimsical, impractical, thrift-store chic, just feasibly girlfriendable little kook that Zooey Deschanel has made a career of. It's almost a parody of the type-- and as Ruby Sparks continues, it occurs that the film is after exactly that. At first, all is harmonious between Calvin and custom-fit Ruby. When inevitable incompatibilities arise, however, Calvin violates his own rule by returning to the typewriter where he discovers that he can "edit" his creation, inadvertently rewriting her as codependent, dippily elated, and bipolar—license for Kazan to run amok, with a winning lack of self-consciousness. She has the sort of faintly retro prettiness that might make her a shoo-in for the next "It" hipster pinup, a trajectory her film and television work thus far would seem to endorse. She also wrote the screenplay, which begs interpretation as a frustrated actresses' commentary on the way that even ostensibly serious writers write women—that is, for maximum convenience. Still, the direction, from Jonathan Dayton and Valerie Faris (Little Miss Sunshine), is never more than workmanlike.