It searches online using Google Search API's for some queries. Queries are n-grams extracted from the source txt file. Resulting URL, matched contents are checked for similarity with given text query.