How it Works
Having selected a portion of text comprising of at least 50 words, the user is able to prompt the extension for an evaluation of the selected text. The extension takes the selected text and passes it via an HTTP GET request to this webpage hosted publicly by Hugging Face (check them out!). The webpage is an interface to OpenAI’s GPT-2 Detector model, which outputs the likelihood that inputted text was generated by GPT-2.
The response from the Hugging Face webpage is received by the extension, parsed and neatly displayed under the selected text. See this example demo provided by Blair Hudson on Twitter:
Ok but how does it actually work
The underlying mechanisms of GPT-2 are bit out of scope for a simple project page like this one. I would like to write a blogpost one day going more into depth about what’s going on behind the scenes (i.e. beyond the frontend browser extension stuff). Patience please!
In the press
This is great. I need it, because Google News keeps sending me fake news links, e.g., https://t.co/uMAvY3lbU3 ("Plucky" => Brave), and this extension gave low odds depending on what text I select, 31-41%, of the story being real. @thesofakillers ++— BrendanEich (@BrendanEich) November 18, 2019