Reading this prompt instantly brought to mind that classic 'portal fantasy' or 'hidden lineage' trope we see everywhere, but what separates the good ones from the forgettable ones, I think, is the mechanism of discovery. So often it's a clumsy external reveal—a random emissary shows up at her dorm, 'Your Highness.' I'm way more invested when the nerd herself uncovers it through her own skills. Like in some LitRPG-adjacent academy stories, she's a lore-obsessed history major cataloging magical artifacts in the university archives and decodes an ancient prophecy that literally names her bloodline, the dates aligning perfectly with her mysterious adoption. It feels earned, a victory of intellect over circumstance, which for a nerd character is everything. The real friction starts after the crown is offered, though. Does she even want it? A well-written arc shows her trying to apply her analytical, system-loving brain to the chaotic, tradition-bound mess of royal politics, maybe using statistical models to reform the agrarian tax system or something. That clash between her innate self and her inherited duty is where the gold is.
Honestly, the 'lost princess' part is almost the easy bit. The harder, more interesting twist I crave is when the 'princess' title isn't about a hereditary monarchy but something weirder. Maybe she's the lost heir to a throne in a parallel dimension bleeding into our world, and her 'nerdy' obsessive research into local gravitational anomalies was actually her subconscious connection to that realm. Her discovery isn't a ceremony but a slow, terrifying realization as the pieces she's been collecting for her thesis click into a horrifying personal truth. That kind of setup leans into gothic or cosmic horror, where the 'privilege' of royalty is actually a curse she now has to bear, her academic curiosity having led her right into a gilded cage. That's a take I'd reread.