{-# LANGUAGE OverloadedStrings #-}
module Config.LinkSuggester where

import Data.List (intercalate)
import qualified Data.Text as T (head, length, unpack, isPrefixOf, isSuffixOf, Text)
import qualified Data.Map.Strict as M (fromList, Map)
import Text.Regex.TDFA ((=~))
import Network.URI (isURI)

import Utils (anyInfixT, anyPrefixT, setLike)

hitsMinimum, anchorLengthMaximum :: Int
hitsMinimum = 4
anchorLengthMaximum = 80

-- return True if matches any blacklist conditions
filterURLs :: T.Text -> Bool
filterURLs u = anyPrefixT u ["$","\8383","#","/static/img/","/metadata/","/newsletter/20","dropbox.com","https://www.harney.com"] ||
               u `elem` ["https://www.reuters.com/article/us-germany-cyber-idUSKCN1071KW"] ||
               "/doc/" `T.isPrefixOf` u && "/index" `T.isSuffixOf` u ||
               "https://gwern.net/doc/" `T.isPrefixOf` u && "/index" `T.isSuffixOf` u

filterAnchors :: T.Text -> Bool
filterAnchors   t = T.length t > anchorLengthMaximum ||
                    -- filter out tag-directories: I don't usually want to link them because they are either redundant with the tag that will be on the annotation as a whole, or they have probably a better definition link. This comes up a lot with 'IQ' or 'heritability' or 'GPT' etc.
                    t =~ regex ||
                    anyInfixT t ["$","%","[","]"] ||
                    anyPrefixT t ["(",".", "Wikipedia link about "] ||
                    elem t badAnchorStrings
  where regex = intercalate "|" $ map (\r -> "^"++r++"$") ["[0-9]+[kmgbt]?", "[0-9]+[\\.,;–-][0-9]+", "pg[0-9]+", "p\\.[0-9]+",
                                                           "[0-9]+[a-f]", "in [12][0-9][0-9][0-9]", "[Ff]igure S?[0-9]+[a-f]?",
                                                           "[Tt]able S?[0-9]+[a-f]?", "[Cc]hapter [0-9]+"]

-- Testing: unique list
badAnchorStrings :: [T.Text]
badAnchorStrings = setLike ["", " ", "\n", "&", "#8", "#facebook", "& AI", "/r/SilkRoad", "0.45kg", "1 Second", "1 dead baby"
             , "10-50k", "100 days", "100GHz", "100\8211\&1000\215", "12-36 hours"
             , "12kb/day", "150 people", "15\215", "175 days", "1908/1966", "1920s"
             , "1933 paper", "1960s", "1980s", "1990s", "1kg", "1\8211\&4", "1\8211\&5"
             , "2 2.5-inch", "2 servers", "2 terabytes", "2 weeks", "2.5 years", "2000s"
             , "2004 SD was", "2005 essay", "2006 paper", "2007 survey", "2008 handout"
             , "2008 review", "2008-11-01", "2010 report", "2010 trial", "2011 paper"
             , "2011 report", "2011 survey", "2012 draft", "2012-11-07", "2013 review"
             , "2013-01-04", "2013-02-16", "2013-03-13", "2013-04-18", "2013-04-23"
             , "2013-09-03", "2013-11-26", "2013-12-19", "2013-12-20", "2014-06-09"
             , "2014-12-26", "2015-03-23", "2015-03-26", "2016 US presidential election"
             , "2016-08-16", "2019 profile", "2019-06-26", "2019-07-05", "2020-07-21"
             , "2021 profile", "20<sup>th</sup> century", "23 in 2018", "2TB one", "2channel"
             , "3 years", "3.5 years", "3D", "3\8211\&5\215", "3\8260\&4s cost", "4 examples"
             , "4 million", "4-item", "40 bytes", "400,000 year", "40 mg⧸day", "4chan.org"
             , "5 years", "50-100k", "53 cats", "58,020", "5\8211\&8", "6-7 years"
             , "7th report", "8 of 11", "8 years", "8mm film", "9 years", "900W UPS"
             , "<10", "<5", "<<", ">307", ">>", "@10", "@7", "@8", "@9", "A chapter"
             , "A trainer", "A-series", "ADHD", "AI", "AK", "ANN thread", "API", "Al-Qaeda"
             , "Alone", "Alpha", "Alzforum", "An article", "Anno again", "Ant", "Appendix A"
             , "Appendix B", "Appendix G", "April 2019", "April 2021", "Ash", "Ashkenazi"
             , "August 2002", "BLDBLOG", "Bamboo", "Blocking", "Blue light", "Book 3"
             , "Brave", "CDC", "CEOs", "CO2", "Caltech", "Chapter 5", "Co", "Code is available"
             , "Codex models", "Colab", "DFA", "DL", "DM", "DNA", "DOI", "Data sources"
             , "December 2017", "Dell monitor", "DoJ", "Donald Trump", "Dune-like"
             , "Dwarf", "Echoes", "English translation", "Episode One", "Episode Six"
             , "Erowid", "FAQ", "FDA", "FDA-approved", "For example", "GOS", "GPS"
             , "GQ", "Gainax.fr", "Genius", "Goog", "H+", "HN", "HTML", "Hackage", "Her"
             , "Hero", "Hoogle", "How often", "Howes", "Human Intelligence", "I conclude"
             , "I estimate", "I expected", "I found it", "I had predicted", "I have"
             , "I have been", "I have recorded", "I love", "I make", "I read", "I set up"
             , "II", "III", "IQs lower", "IRC", "If he does", "Image", "In a study"
             , "Indeed", "It turns out", "JS", "JSON", "Jaeggi says", "January 2010"
             , "January 2022", "John F. Kennedy", "July 2022", "June 2016", "June 2021"
             , "Karma", "Korff", "LW", "LW review", "Lab", "Law", "Lili", "Loui", "Lowe commentary"
             , "Lyons Den", "MIRI", "MP4", "March 11", "March 2022", "Mark Xu", "May 2021"
             , "MeFi", "Mr", "Multivariable", "NBC News", "NS", "NYRB", "NYT 2011"
             , "Net", "Neuroticism", "New Links", "New York", "No benefits", "No."
             , "November 2019", "November 2021", "OA", "OA claims", "OA5", "ODS", "ON FIRE"
             , "October 2021", "October 2022", "Okada", "One", "One blogger", "One episode"
             , "One survey", "Online", "Open", "Organizational Behavior and Human Decision Processes"
             , "P&G", "PDF", "Paper", "Part 1", "Part 3", "Part Four", "Part I", "Part II"
             , "Part One", "Part Three", "Part Two", "Poll", "Pulp Mag", "Quest", "Quora"
             , "RNA", "RSS", "RSS version", "Raman", "Redditor", "Reset.me", "Rotem"
             , "Rumi", "S1", "S1E1", "S1E11", "S1E14", "S1E2", "S1E26", "S2E14", "S2E15"
             , "S2E25", "S2E26", "S2E4", "S2E8", "S3E11", "S3E12", "S3E13", "S3E3"
             , "S3E4", "S4E18", "S4E25", "S4E26", "S5E1", "S5E12", "S5E13", "S5E18"
             , "S5E2", "S5E21", "S5E25", "S5E5", "S5E9", "S6E22", "S6E25", "S6E9", "S7E10"
             , "S7E13", "S7E14", "S7E24", "S8E14", "S8E20", "S8E21", "S8E23", "S8E27"
             , "S9E13", "S9E14", "S9E21", "S9E23", "S9E4", "SD cards", "SF", "SR forums"
             , "SR1", "SR1F", "SR2F", "STRATFOR", "SVG", "Salon", "Salon.com", "SciAm"
             , "Section 5", "See also", "See here", "September 2021", "Share", "Silk Road 2"
             , "Silk Road 2.0", "Singal", "Slate", "Slice", "Some studies", "Some work"
             , "Spent", "Spring 2019", "Steven Kaas", "Sturm\8217s", "T-shirts", "TR"
             , "TSG", "TV", "Table 4", "Tables 2", "The Age", "The Guardian", "The Verge\8217s"
             , "The article", "The data", "The problem", "The results", "There are many ways"
             , "This interview", "This one", "This paper", "This technique", "To quote"
             , "Tofu", "Top books", "Tumblr", "U-shaped", "UK", "UOChris1", "URLs"
             , "US states", "USB hub", "Vaniver", "Verge", "Vice", "WaOi", "Why not"
             , "Wikipedia pages", "XMonad", "XSLT", "Xs", "Zagat", "a blog post", "a book"
             , "a co-founder", "a collection", "a commuter", "a curious appeal", "a decade later"
             , "a few lines", "a fifth", "a game", "a genius", "a good thing", "a half"
             , "a historic", "a laptop", "a later analysis", "a little work", "a lot"
             , "a lot of things", "a meta-analysis", "a network", "a new era", "a penalty"
             , "a quarter", "a reference", "a review", "a rumor", "a saying", "a scan"
             , "a second experiment", "a service", "a seventh", "a sixth", "a study"
             , "a survey", "a third", "a tradition", "a vice", "a web page", "about it"
             , "absolutely right", "ac.uk", "according to", "acne page", "affect mood"
             , "ajcn.org", "aleph.se", "all of them", "allow an", "also interesting"
             , "also with", "amazon.co.", "amazon.com", "an article", "an attempt"
             , "an email interview", "an essay", "an example", "an excerpt", "an interview"
             , "analytics", "and do", "and family history", "and identified", "animal welfare"
             , "annals.org", "annual survey", "anonymized", "another example", "another page"
             , "another suggestion", "anti-", "antilop.cc", "archive.is", "archivenow"
             , "are available", "are banned", "are due to", "are making", "aries", "arrest of 2"
             , "arrested 5", "art & wine", "arxiv", "arxiv.org", "as a teacher", "as is"
             , "as necessary", "as of 2011", "as of 2014", "as predicted", "as usual"
             , "ast", "at all", "at least 4", "at least once", "at night", "autoregressive"
             , "average-case", "award-winning", "awesome as it is", "background information"
             , "backing up", "basic idea", "be made", "been abandoned", "been examined"
             , "been in jail", "been removed", "believe it", "better performance", "bio"
             , "biomedicine", "black women", "blixt", "blocking", "blocks", "blog post"
             , "blood sugar", "bls.gov", "body weight", "book reviews", "brain plasticity"
             , "bre", "busted in", "by fans", "by his", "c2.com", "can be improved"
             , "can influence", "can lead to", "can\8217t build", "captainjojo", "ccc.de"
             , "cdlib.org", "census.gov", "cev", "ch14.5", "classifier", "cognitive training"
             , "court records", "criminal records", "dataset", "de facto", "debian.org"
             , "decline with age", "deep learning", "delusional", "demo quiz", "demo video"
             , "dental records", "did arrive", "did not do much", "diff of", "digit span"
             , "discord.gg", "doc88.com", "does know", "does seem", "doi.org", "don\8217t"
             , "dreams can", "dtic.mil", "due solely", "early 2012", "ecology & evolution"
             , "eepurl.com", "eg", "elderly individuals", "emphasis added", "encourager"
             , "episode 10", "episode 18", "erowid.org", "especially well", "evidence of publication bias"
             , "exigentsky", "expected from their", "expel elves", "fMRI study", "face crops"
             , "fair use", "famously argued that", "fandom.com", "fatal accidents"
             , "fatal flaw", "favorite books", "fda.gov", "feline form", "field experiment"
             , "figure 2/3", "financial incentive", "finetuned", "first calculation"
             , "first proposed", "first quote", "first result", "flickr.com", "followup"
             , "followup paper", "for aspirin", "for example", "for my dog", "for novelty"
             , "forum posts", "found the opposite", "free", "full translation", "game 1"
             , "game 2", "gatotsu911", "generalizability", "gitcoin.co", "gitlab.com"
             , "gnxp.com", "go", "goo.gl", "great results", "grok.se", "gwern", "gwern.net"
             , "had planned", "has announced", "has observed", "has said", "has shown"
             , "has told", "he says", "he wrote", "health benefits", "held up", "help me"
             , "her book", "high-dimensional", "highly optimized", "historical context"
             , "historical survey", "homeostasis", "how critical", "how long it takes"
             , "how often", "i2", "iacr.org", "ieet.org", "ietf.org", "if available"
             , "imdb.com", "imgur.com", "impact-factor", "in Bitcoin", "in China", "in Ireland"
             , "in Minecraft", "in a", "in an essay", "in animal models", "in generative models"
             , "in my table", "in the", "increased mortality", "independent replication"
             , "index.html", "instructional technology", "interesting thing", "into English"
             , "into the abdomen", "intro", "inversely correlated", "is amusing", "is available"
             , "is improved", "is reportedly", "is to", "isfdb.org", "it sells", "it uses"
             , "it was noted", "jttoto", "just one such", "just regression", "jwz.org"
             , "kaggle.com", "karthik bm", "kriegerlie", "landmark address", "large dataset"
             , "last very", "last year", "latest work", "le", "learn faster", "learned representation"
             , "legal highs", "leme.me", "leme.me/", "less on conflict", "less secure"
             , "libgen.is", "libgen.org", "lifetime income", "like murder", "link compilation"
             , "logging-in", "long way", "long-term", "looks like", "lwn.net", "made bail"
             , "make it", "makes sense", "many problems", "many things", "many ways"
             , "marginnote", "matrix multiplication", "may be", "maybe not", "mdpi.com"
             , "media op-ed", "medium.com", "mega.nz", "meta", "mid-2012", "mor", "more coverage"
             , "more difficult", "more examples", "more peculiar", "more samples", "more sober"
             , "more strongly", "mostly when", "mouse study", "movie adaptation", "much less"
             , "much more expensive", "much-cited", "muflax", "music generation", "must be"
             , "my config", "my own page", "my prediction", "my surprise", "mystical experience"
             , "nber.org", "ncase.me", "nejm.org", "neurobiology", "neuroticism", "newegg.com"
             , "nice slides", "nih.gov", "nips.css", "not heard", "not necessarily"
             , "not too bad", "npr.org", "nytimes.com", "odd study", "of course", "of data"
             , "of empathy", "off of SR2", "often low", "oglaf.com", "on average", "on closer inspection"
             , "on poetry", "on scaling", "one", "one article", "one buyer", "one month"
             , "one site", "one study", "one user", "online", "online demo", "only exit"
             , "only once", "only so much", "open questions", "or more", "original paper"
             , "original vision", "other benefits", "other examples", "oup.com", "our book"
             , "over an", "own films", "p.\160\&2", "part Five", "pdf", "peerj.com"
             , "pet flap", "png", "points out", "policy implications", "ponzis", "poorly studied"
             , "post-rock", "pre-2012", "pre-GWAS", "pregnancy rates", "premium\8217"
             , "preprint", "pretty safe", "probably not", "project page", "psychiatric disorders"
             , "psychiatry", "psychopathy", "public datasets", "publicly available"
             , "published version", "push-button", "qntm.org", "quora.com", "r = 0.4"
             , "random samples", "rare mutations", "raw data", "recent research", "regression tasks"
             , "regression to", "reported that", "research in general", "research paper"
             , "review article", "review of", "rewriting history", "row1.ca", "run computers"
             , "s1\8211\&8", "s9", "sanded floor", "scaled-up", "scales with model size"
             , "scaling laws", "scaling up", "school-based", "season 9", "second quote"
             , "sed", "sees through", "self-esteem", "serious threat", "several studies"
             , "shallow moon", "show off", "shut down", "side effects", "side-effects"
             , "simple SVG", "site traffic", "small fraction", "small study", "smallcaps"
             , "smaller model", "snowy halcy", "so low", "so many", "so powerful", "some evidence"
             , "some harm", "source code", "speeding up", "status", "status hierarchies"
             , "steady fall", "still bad", "still is", "still walk", "storks in", "struggled for years"
             , "such as Iran", "such files", "suggests that", "summarization", "summary statistics"
             , "summed to", "summer jobs", "surprising abilities", "survey results"
             , "synaptic", "tale of", "tality", "ted.com", "tells us", "than before"
             , "that config", "that could", "that low", "the BBC", "the E", "the Quakers"
             , "the USA", "the ambitions", "the appendix", "the cause", "the cellular level"
             , "the code", "the devil is in the details", "the difference", "the end"
             , "the heart", "the initial screening", "the king", "the mean", "the morning"
             , "the movie", "the newsletter", "the paper", "the problem", "the relationship"
             , "the research literature", "the seasons", "the seen", "the size", "the solution"
             , "their graph", "their health", "there are many ways", "there is evidence"
             , "there too", "there too!", "thin,", "this link", "this one", "this paper"
             , "this post", "those affected", "to solve", "to test", "to the mean"
             , "to why", "told not to", "top journals", "trans", "transcription/translation"
             , "turns out to be", "twin studies", "x.com", "type=pdf", "underspend"
             , "understand", "unigrams", "until 2014", "used it", "usually not", "v3"
             , "vague musing", "very fast", "very tricky", "vice-versa", "vice.com"
             , "video calls", "video demo", "visualizations", "vox.com", "w3.org", "was also"
             , "was minimal", "was searched", "was skeptical", "watch a video", "we have created"
             , "we see", "weak evidence", "web pages", "well studied", "well-known"
             , "well-studied", "went bankrupt", "whitepaper", "who would", "wikipedia.org"
             , "winning big", "with itself", "with others", "within a year", "won\8217t"
             , "worked out", "world model", "wrote a paper", "young adults", "youtu.be"
             , "~", "~16", "~2014-11-06", "~20kj/g", "~6", "\8217perfection", "\8383\&39,644"
             , "\12371\12393\12418\12398\12375\12367\12415", "\12402\12425\12426\21380\31070\27096"
             , "\12454\12469\12462\12488\12456\12468", "\21380\31070\27096\12398\36890\23398\36335"
             , "\24189\38597\12395\21682\12363\12379\12289\22696\26579\12398\26716"
             , "\24651\24515\12402\12392\12388", "\26481\26041\22934\12293\22818", "\27531\12425\12378\12398\26862"
             , "\30495\29983\26410\20998\12398\19968\24515", "\37504\27827\12392\24651\33394\39764\27861", "Review of"
             , "as happened", "non-trivial error rates", "the fulltext", "Smith et al", "heavily edited", "never worked"
             , "other considerations", "It succeeded", "much harder", "available for download", "as of 2023", "There must be"
             , "text samples", "inefficiency of", "so often", "highly sensitive", "Matters Of", "Matters of"
             , "matters of", "list of ideas", "in biology", "anchor", "transformative", "into them", "the stock market"
             , "Bloomberg News", "Twitter", "media report", "to cry", "A/B test results", "white men", "more robust"
             , "predicting the next", "white males", "They were surprised", "finetune it", "years pass", "locks of hair"
             , "put it", "and that", "come together", "Reddit", "see also", "majority voting", "tradeoff", "the famous"
             , "behind closed doors", "supported him", "reminds us", "in one scene", "closer inspection", "as GPT-3"
             , "Why Anime", "as always", "are competitive", "a few hundred", "a claim", "due to randomness", "so slow"
             , "cope with", "forum suggestion", "one post", "desirable property", "September 2022", "human-like"
             , "not one but two", "We now take for granted", "already failed", "face synthesis", "R. A."
             , "Transformer version", "from above", "what if", "most of them", "Q&A", "has argued"
             , "knew how to do it at that time", "faster performance", "the Guardian", "crowdsourcing experiment"
             , "Its", "its", "news", "ITS", "NEWS", "heavy use", "seamless", "My proposal", "sinister"
             , "in the morning", "to be false", "surprisingly close", "really learning", "an economist", "the launch"
             , "similar datapoints", "it turns out", "Another article", "that other", "personalization", "a critic"
             , "I agree", "minimal impact", "blog posts", "it turned out", "can be"]

-- a whitelist of (URL, [possible anchors]) pairs which would be filtered out normally by the heuristic checks, but are valid anyway. Instances can be found looking at the generated `linkSuggests-deleted.hs` database, or written by hand when I notice useful links not being suggested in the formatting phase of writing annotations.
whiteListDB :: M.Map T.Text [T.Text]
whiteListDB = M.fromList $ filter (\(k,_) -> (k /= "") && (T.head k == '/' || isURI (T.unpack k))) whiteList

-- Testing: unique keys & values & key-values; first, is URI, second, none are URL (cannot require not-isURI because strings like "PALM" parse as valid URIs)
whiteList :: [(T.Text, [T.Text])]
whiteList = setLike [ ( "/crop#hands"
    , [ "PALM"
      , "PALM ('PALM Anime Locator Model') is a dataset of k=5,382 anime-style Danbooru2019 images annotated with the locations of _n_ = 14,394 hands, a YOLOv3 model trained using those annotations to detect hands in anime-style images, and a second dataset of _n_ = 96,534 hands cropped from the Danbooru2019 dataset using the PALM YOLO model and _n_ = 58,536 of them upscaled to \8805\&512px"
      , "PALM ('PALM Anime Locator Model') is a dataset of k=5,382 anime-style Danbooru2019 images annotated with the locations of n=14,394 hands, a YOLOv3 model trained using those annotations to detect hands in anime-style images, and a second dataset of n=96,534 hands cropped from the Danbooru2019 dataset using the PALM YOLO model and n=58,536 of them upscaled to \8805\&512px"
      , "PALM: The PALM Anime Location Model And Dataset"
      ]
    )
  , ("https://openai.com/gpt-5/", ["GPT-5"])
  , ("https://en.wikipedia.org/wiki/Metropolitan_Opera_Live_in_HD", ["Met HD"])
  , ("https://openai.com/index/introducing-gpt-4-5/", ["GPT-4.5"])
  , ("https://en.wikipedia.org/wiki/Facet_(psychology)", ["facet", "facets", "facet-level"])
  , ("https://en.wikipedia.org/wiki/Learning_rate", ["learning rate", "learning rates"])
  , ("https://en.wikipedia.org/wiki/Gregor_Mendel", ["Gregor Mendel", "Mendel"])
  , ("https://en.wikipedia.org/wiki/Comma-separated_values", ["CSV"])
  , ("https://en.wikipedia.org/wiki/Marc_Andreessen", ["Marc Andreessen"])
  , ("https://en.wikipedia.org/wiki/Microsoft_Bing", ["Bing", "MS Bing", "Microsoft Bing", "Bing Search"])
  , ("https://en.wikipedia.org/wiki/Large_language_model", ["LLMs", "LLM", "large language models", "large language model"])
  , ("https://en.wikipedia.org/wiki/Biometrics", ["biometric", "biometrics"])
  , ("https://openai.com/index/hello-gpt-4o/", ["GPT-4o"])
  , ("https://openai.com/index/gpt-4-research/", ["GPT-4"])
  , ("https://en.wikipedia.org/wiki/Diffusion_model", ["diffusion models", "diffusion model"])
  , ("https://en.wikipedia.org/wiki/Suicidal_ideation", ["suicidal ideation"])
  , ("https://en.wikipedia.org/wiki/Stripe,_Inc.", ["Stripe Inc.", "Stripe"])
  , ("https://en.wikipedia.org/wiki/MIT_Technology_Review", ["MIT Technology Review", "Technology Review"])
  , ("https://en.wikipedia.org/wiki/Greg_Brockman", ["Greg Brockman", "Brockman"])
  , ("https://en.wikipedia.org/wiki/Ilya_Sutskever", ["Ilya Sutskever", "Sutskever"])
  , ("https://en.wikipedia.org/wiki/John_Carmack", ["John Carmack"])
  , ("https://en.wikipedia.org/wiki/Elon_Musk", ["Elon Musk"])
  , ("https://en.wikipedia.org/wiki/UK_Biobank", ["UK Biobank", "UKBB"] )
  , ( "/doc/ai/nn/diffusion/2018-sharma.pdf#google"
    , [ "Conceptual Captions" ]
    )
  , ( "/doc/ai/scaling/2013-yudkowsky.pdf#miri"
    , [ "Intelligence Explosion Microeconomics" , "Yudkowsky 2013" ]
    )
  , ( "/doc/ai/scaling/hardware/2008-sandberg-wholebrainemulationroadmap.pdf"
    , [ "Sandberg & Bostrom 2008" , "Whole Brain Emulation Roadmap" ]
    )
  , ( "/doc/anime/eva/notenki-memoirs/2002-takeda-notenkimemoirs#opening-the-general-products-store"
    , [ "General Products" ]
    )
  , ( "/doc/anime/eva/notenki-memoirs/2002-takeda-notenkimemoirs#the-daicon-3-decision"
    , [ "DAICON III" ]
    )
  , ( "/doc/statistics/bias/2010-zhang.pdf"
    , [ "'Chinese journal finds 31% of submissions plagiarized', Zhang 2010"
      ]
    )
  , ( "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3147063/"
    , [ "Why are children in the same family so different from one another"
      ]
    )
  , ( "/doc/genetics/heritable/rare/2014-pellegrino.pdf"
    , [ "A Novel BHLHE41 Variant is Associated with Short Sleep and Resistance to Sleep Deprivation in Humans"
      , "Pellegrino et al 2014"
      ]
    )
  , ( "/doc/genetics/heritable/correlation/2014-mosing.pdf"
    , [ "Practice Does Not Make Perfect: No Causal Effect of Music Practice on Music Ability"
      ]
    )
  , ( "/doc/genetics/heritable/correlation/2015-krapohl.pdf"
    , [ "Krapohl et al 2015"
      , "Phenome-wide analysis of genome-wide polygenic scores"
      ]
    )
  , ( "/doc/genetics/heritable/correlation/2015-pettersson.pdf"
    , [ "Common psychiatric disorders [and violent crime] share the same genetic origin: a multivariate sibling study of the Swedish population"
      ]
    )
  , ( "/doc/genetics/heritable/correlation/2015-zhu.pdf"
    , [ "Educational attainment-related loci identified by GWAS are associated with select personality traits and mathematics and language abilities"
      , "Zhu et al 2015"
      ]
    )
  , ( "/doc/genetics/selection/artificial/1933-student.pdf"
    , [ "Evolution By Selection: The Implications of Winter\8217s Selection Experiment [in <em>Student's Collected Papers</em>]"
      , "Student 1933"
      ]
    )
  , ( "/doc/genetics/selection/artificial/index-selection/2011-cole.pdf"
    , [ "Cole & VanRaden 2011"
      , "Use of haplotypes to estimate Mendelian sampling effects and selection limits"
      ]
    )
  , ( "/doc/iq/2013-rietveld.pdf"
    , [ "GWAS of 126,559 Individuals Identifies Genetic Variants Associated with Educational Attainment"
      , "Rietveld et al 2013"
      ]
    )
  , ( "/doc/iq/2014-shulman.pdf"
    , [ "Embryo Selection for Cognitive Enhancement: Curiosity or Game-changer"
      , "Shulman & Bostrom 2014"
      ]
    )
  , ( "/doc/iq/2018-lee.pdf" , [ "Lee et al 2018" ] )
  , ( "/doc/nicotine/2009-lecacheux.pdf"
    , [ "Cognitive modifications associated with tobacco smoking [review]', Lecacheux et al 2009"
      ]
    )
  , ( "/doc/nootropic/2008-helland.pdf"
    , [ "Effect of Supplementing Pregnant and Lactating Mothers With n-3 Very-Long-Chain Fatty Acids on Children's IQ and Body Mass Index at 7 Years of Age"
      ]
    )
  , ( "/doc/psychiatry/lithium/2015-helbich.pdf"
    , [ "Helbich et al 2015"
      , "Lithium in drinking water and suicide mortality: interplay with lithium prescriptions"
      ]
    )
  , ( "/doc/psychology/writing/2009-sio.pdf"
    , [ "Does incubation enhance problem-solving? A meta-analytic review"
      , "Sio & Ormerod 2009"
      ]
    )
  , ( "/doc/reinforcement-learning/meta-learning/2018-wang.pdf#deepmind"
    , [ "Prefrontal cortex as a meta-reinforcement learning system"
      , "Wang et al 2018"
      ]
    )
  , ( "/doc/reinforcement-learning/model-free/1992-williams.pdf"
    , [ "REINFORCE" ]
    )
  , ( "/doc/reinforcement-learning/model-free/2016-graves.pdf#deepmind"
    , [ "Hybrid computing using a neural network with dynamic external memory"
      ]
    )
  , ( "/doc/reinforcement-learning/model/alphago/2017-silver.pdf#page=3&org=deepmind"
    , [ "AlphaGo Zero"
      , "Mastering the game of Go without human knowledge', Silver et al 2017"
      ]
    )
  , ( "/doc/sociology/1987-rossi.pdf"
    , [ "The Iron Law Of Evaluation And Other Metallic Rules', Rossi 1987"
      ]
    )
  , ( "/doc/sociology/2003-murray-humanaccomplishment.pdf"
    , [ "Human Accomplishment" ]
    )
  , ( "/doc/sociology/intrasexual-aggression/1993-boehm.pdf"
    , [ "Egalitarian Behavior and Reverse Dominance Hierarchy [and Comments and Reply]', Boehm et al 1993"
      ]
    )
  , ( "/doc/statistics/bayes/hope-function/1994-falk.pdf"
    , [ "The Ups and Downs of the Hope Function In a Fruitless Search', Falk et al 1994"
      ]
    )
  , ( "/doc/statistics/bayes/2009-kaas.html"
    , [ "A New Challenge to 98% Confidence" ]
    )
  , ( "/doc/wikipedia/2018-teblunthuis.pdf"
    , [ "Revisiting The Rise and Decline in a Population of Peer Production Projects [769 wikis"
      ]
    )
  , ( "/gpt-3#prompts-as-programming"
    , [ "prompt programming" , "prompt engineering" ]
    )
  , ( "/spaced-repetition"
    , [ "spaced repetition" , "Mnemosyne" , "SRS" ]
    )
  , ( "/turing-complete#security-implications"
    , [ "weird machines" ]
    )
  , ( "/twdne" , [ "TWDNE" ] )
  , ( "http://garote.bdmonkeys.net/commandline/"
    , [ "In the Beginning was the Command Line" ]
    )
  , ( "http://leipper.org/manuals/zip-fill/safelocks_for_compscientist.pdf"
    , [ "Safecracking for the computer scientist" ]
    )
  , ( "https://arbtt.nomeata.de/" , [ "arbtt" ] )
  , ( "https://archive.org/details/in.ernet.dli.2015.207427"
    , [ "Animal Breeding Plans" ]
    )
  , ( "https://arxiv.org/abs/1707.02968#google"
    , [ "Revisiting Unreasonable Effectiveness of Data in Deep Learning Era"
      , "Sun et al 2017"
      ]
    )
  , ( "https://arxiv.org/abs/1801.01290" , [ "SAC" ] )
  , ( "https://arxiv.org/abs/1807.03819#googledeepmind"
    , [ "Dehghani et al 2018" , "Universal Transformers" ]
    )
  , ( "https://arxiv.org/abs/1909.08593#openai"
    , [ "Fine-Tuning Language Models from Human Preferences"
      , "Ziegler et al 2019"
      ]
    )
  , ( "https://arxiv.org/abs/1910.10683#google"
    , [ "T5" , "T5 models" ]
    )
  , ( "https://arxiv.org/abs/1910.13038#google"
    , [ "Learning to Predict Without Looking Ahead: World Models Without Forward Prediction', Freeman et al 2019"
      ]
    )
  , ( "https://arxiv.org/abs/2007.02382"
    , [ "Decentralized Reinforcement Learning: Global Decision-Making via Local Economic Transactions"
      ]
    )
  , ( "https://arxiv.org/abs/2204.02311#google" , [ "PaLM" ] )
  , ( "https://research.google/blog/reformer-the-efficient-transformer/"
    , [ "Reformer: The Efficient Transformer" ]
    )
  , ( "https://casual-effects.com/markdeep/features.md.html#basicformatting/admonitions"
    , [ "admonitions" ]
    )
  , ( "https://danbooru.donmai.us/wiki_pages/help:home" , [ "Danbooru" ] )
  , ( "https://danluu.com/p95-skill/"
    , [ "95%-ile isn\8217t that good" ]
    )
  , ( "https://davidepstein.com/david-epstein-the-sports-gene/"
    , [ "The Sports Gene" ]
    )
  , ( "https://derpibooru.org/" , [ "Derpibooru" ] )
  , ( "https://edwardtufte.github.io/tufte-css/"
    , [ "Tufte CSS" , "Tufte-CSS" ]
    )
  , ( "https://elifesciences.org/articles/45183"
    , [ "Meta-Research: A comprehensive review of randomized clinical trials in three medical journals reveals 396 [13%] medical reversals"
      ]
    )
  , ( "https://en.wikipedia.org/wiki/A%2FB_tests" , [ "A/B tests" ] )
  , ( "https://en.wikipedia.org/wiki/A.E._Housman"
    , [ "A.E. Housman" ]
    )
  , ( "https://en.wikipedia.org/wiki/AI_Dungeon" , [ "AI Dungeon" ] )
  , ( "https://en.wikipedia.org/wiki/ALGOL_60" , [ "ALGOL" ] )
  , ( "https://en.wikipedia.org/wiki/AMD" , [ "AMD" ] )
  , ( "https://en.wikipedia.org/wiki/Acrostic"
    , [ "acrostic" , "acrostics" ]
    )
  , ( "https://en.wikipedia.org/wiki/Adderall" , [ "Adderall" ] )
  , ( "https://en.wikipedia.org/wiki/Agreeableness"
    , [ "agreeableness"
      , "Agreeableness"
      , "disagreeableness"
      , "Disagreeableness"
      ]
    )
  , ( "https://en.wikipedia.org/wiki/Agrippina_(opera)"
    , [ "Agrippina" ]
    )
  , ( "https://en.wikipedia.org/wiki/Albert_Einstein"
    , [ "Albert Einstein" , "Einstein" ]
    )
  , ( "https://en.wikipedia.org/wiki/AlexNet" , [ "AlexNet" ] )
  , ( "https://en.wikipedia.org/wiki/Alkaloids" , [ "alkaloids" ] )
  , ( "https://en.wikipedia.org/wiki/Amber" , [ "amber" ] )
  , ( "https://en.wikipedia.org/wiki/Amphetamine"
    , [ "amphetamine" ]
    )
  , ( "https://en.wikipedia.org/wiki/Anchoring_(cognitive_bias)"
    , [ "Anchor"
      , "Anchored"
      , "Anchoring"
      , "anchor"
      , "anchored"
      , "anchoring"
      ]
    )
  , ( "https://en.wikipedia.org/wiki/Andrew_Gelman"
    , [ "Andrew Gelman" ]
    )
  , ( "https://en.wikipedia.org/wiki/Animal_welfare"
    , [ "animal welfare" ]
    )
  , ( "https://en.wikipedia.org/wiki/Apollo_11" , [ "Apollo 11" ] )
  , ( "https://en.wikipedia.org/wiki/Archive_Team"
    , [ "Archive Team" ]
    )
  , ( "https://en.wikipedia.org/wiki/Arduino" , [ "Arduino" ] )
  , ( "https://en.wikipedia.org/wiki/Ars_Technica"
    , [ "Ars Technica" ]
    )
  , ( "https://en.wikipedia.org/wiki/Assassination_markets"
    , [ "assassination markets" , "assassination market" ]
    )
  , ( "https://en.wikipedia.org/wiki/Attention_deficit_hyperactivity_disorder"
    , [ "ADHD" , "Attention deficit hyperactivity disorder" ]
    )
  , ( "https://en.wikipedia.org/wiki/Augur_%28software%29"
    , [ "Augur" ]
    )
  , ( "https://en.wikipedia.org/wiki/Autoregressive_model"
    , [ "autoregressive" , "autoregressive model" , "autoregression" ]
    )
  , ( "https://en.wikipedia.org/wiki/Bash_%28Unix_shell%29"
    , [ "Bash" ]
    )
  , ( "https://en.wikipedia.org/wiki/Batch_normalization"
    , [ "batchnorm" ]
    )
  , ( "https://en.wikipedia.org/wiki/Benjamin_Franklin"
    , [ "Benjamin Franklin" , "Ben Franklin" ]
    )
  , ( "https://en.wikipedia.org/wiki/Big_data" , [ "big data" ] )
  , ( "https://en.wikipedia.org/wiki/Blade_Runner"
    , [ "Blade Runner" ]
    )
  , ( "https://en.wikipedia.org/wiki/Breaking_Bad"
    , [ "Breaking Bad" ]
    )
  , ( "https://en.wikipedia.org/wiki/Byte" , [ "byte" ] )
  , ( "https://en.wikipedia.org/wiki/C.S._Lewis" , [ "C.S. Lewis" ] )
  , ( "https://en.wikipedia.org/wiki/CURL" , [ "cURL" , "curl" ] )
  , ( "https://en.wikipedia.org/wiki/Caffeine"
    , [ "Caffeine" , "caffeinated" , "caffeine" ]
    )
  , ( "https://en.wikipedia.org/wiki/Calibration_%28statistics%29"
    , [ "calibrated" ]
    )
  , ( "https://en.wikipedia.org/wiki/California_Institute_of_Technology"
    , [ "Caltech" ]
    )
  , ( "https://en.wikipedia.org/wiki/Carl_Friedrich_Gauss"
    , [ "Gauss" ]
    )
  , ( "https://en.wikipedia.org/wiki/Censoring_(statistics)"
    , [ "censoring" ]
    )
  , ( "https://en.wikipedia.org/wiki/Charles_Darwin"
    , [ "Charles Darwin" ]
    )
  , ( "https://en.wikipedia.org/wiki/Choose_Your_Own_Adventure"
    , [ "CYOA" , "Choose-Your-Own-Adventure" ]
    )
  , ( "https://en.wikipedia.org/wiki/Cicero" , [ "Cicero" ] )
  , ( "https://en.wikipedia.org/wiki/Circadian_rhythm"
    , [ "circadian rhythm"
      , "circadian rhythms"
      , "circadian cycle"
      , "circadian cycles"
      , "circadian"
      ]
    )
  , ( "https://en.wikipedia.org/wiki/Claude_Shannon"
    , [ "Claude Shannon" ]
    )
  , ( "https://en.wikipedia.org/wiki/Clever_Hans"
    , [ "Clever Hans" ]
    )
  , ( "https://en.wikipedia.org/wiki/Confounding"
    , [ "Confounding" , "confounding" ]
    )
  , ( "https://en.wikipedia.org/wiki/Conscientiousness#Personality_models"
    , [ "Conscientiousness"
      , "conscientiousness"
      , "Conscientious"
      , "conscientious"
      ]
    )
  , ( "https://en.wikipedia.org/wiki/Cowpox"
    , [ "Cowpox" , "cowpox" ]
    )
  , ( "https://en.wikipedia.org/wiki/Cybernetics"
    , [ "cybernetics" ]
    )
  , ( "https://en.wikipedia.org/wiki/Decision_theory"
    , [ "decision theory" ]
    )
  , ( "https://en.wikipedia.org/wiki/Demis_Hassabis"
    , [ "Hassabis" , "Demis Hassabis" ]
    )
  , ( "https://en.wikipedia.org/wiki/Derek_Lowe_(chemist)"
    , [ "Derek Lowe" ]
    )
  , ( "https://en.wikipedia.org/wiki/Dexter_and_sinister"
    , [ "dexter" , "sinister" ]
    )
  , ( "https://en.wikipedia.org/wiki/Dose-response_relationship"
    , [ "dose-response relationship" ]
    )
  , ( "https://en.wikipedia.org/wiki/Dropout_%28neural_networks%29"
    , [ "dropout" ]
    )
  , ( "https://en.wikipedia.org/wiki/Dungeons_%26_Dragons"
    , [ "D&D" ]
    )
  , ( "https://en.wikipedia.org/wiki/Duplicity_%28software%29"
    , [ "duplicity" ]
    )
  , ( "https://en.wikipedia.org/wiki/Earwax" , [ "earwax" ] )
  , ( "https://en.wikipedia.org/wiki/Eclipse_%28software%29"
    , [ "Eclipse" ]
    )
  , ( "https://en.wikipedia.org/wiki/Effect_size"
    , [ "effect size" ]
    )
  , ( "https://en.wikipedia.org/wiki/Emacs" , [ "Emacs" ] )
  , ( "https://en.wikipedia.org/wiki/English_Wikipedia"
    , [ "English Wikipedia" ]
    )
  , ( "https://en.wikipedia.org/wiki/Entropy_(information_theory)"
    , [ "Entropy" , "entropy" ]
    )
  , ( "https://en.wikipedia.org/wiki/Epilepsy"
    , [ "Epilepsy" , "epilepsy" ]
    )
  , ( "https://en.wikipedia.org/wiki/Escrow" , [ "escrow" ] )
  , ( "https://en.wikipedia.org/wiki/European_Union"
    , [ "EU" , "European Union" ]
    )
  , ( "https://en.wikipedia.org/wiki/Experience_curve_effects"
    , [ "experience curve" ]
    )
  , ( "https://en.wikipedia.org/wiki/Extraversion_and_introversion"
    , [ "Extraversion" , "Introversion" ]
    )
  , ( "https://en.wikipedia.org/wiki/FLOSS" , [ "FLOSS" ] )
  , ( "https://en.wikipedia.org/wiki/Fixation_%28population_genetics%29"
    , [ "Fixation" , "fixation" , "reach fixation" ]
    )
  , ( "https://en.wikipedia.org/wiki/Flickr" , [ "Flickr" ] )
  , ( "https://en.wikipedia.org/wiki/Functional_magnetic_resonance_imaging"
    , [ "fMRI" , "functional magnetic resonance imaging" ]
    )
  , ( "https://en.wikipedia.org/wiki/GCTA" , [ "GCTA" ] )
  , ( "https://en.wikipedia.org/wiki/GNOME" , [ "GNOME" , "Gnome" ] )
  , ( "https://en.wikipedia.org/wiki/Gala_%28apple%29" , [ "Gala" ] )
  , ( "https://en.wikipedia.org/wiki/Gene%E2%80%93environment_interaction"
    , [ "gene-environment interaction"
      , "gene\8211environment interaction"
      , "GxE"
      , "G\215E"
      ]
    )
  , ( "https://en.wikipedia.org/wiki/Genetic_recombination"
    , [ "Recombination" , "recombination" ]
    )
  , ( "https://en.wikipedia.org/wiki/Giacomo_Puccini"
    , [ "Puccini" ]
    )
  , ( "https://en.wikipedia.org/wiki/Gian-Carlo_Rota"
    , [ "Gian-Carlo Rota" ]
    )
  , ( "https://en.wikipedia.org/wiki/Github"
    , [ "GitHub" , "Github" ]
    )
  , ( "https://en.wikipedia.org/wiki/Global_Burden_of_Disease_Study"
    , [ "Global Burden of Disease" ]
    )
  , ( "https://en.wikipedia.org/wiki/Gompertz_function"
    , [ "Gompertz curve" ]
    )
  , ( "https://en.wikipedia.org/wiki/Google_Alerts"
    , [ "Google Alerts" ]
    )
  , ( "https://en.wikipedia.org/wiki/Hal_Finney_%28cypherpunk%29"
    , [ "Hal Finney" ]
    )
  , ( "https://en.wikipedia.org/wiki/Hangul"
    , [ "Hangul" , "hangul" ]
    )
  , ( "https://en.wikipedia.org/wiki/Hans_Eysenck" , [ "Eysenck" ] )
  , ( "https://en.wikipedia.org/wiki/Haskell" , [ "Haskell" ] )
  , ( "https://en.wikipedia.org/wiki/Hells_Angels_(manga)"
    , [ "HELLS" , "Hells" ]
    )
  , ( "https://en.wikipedia.org/wiki/Henry_Darger"
    , [ "Henry Darger" ]
    )
  , ( "https://en.wikipedia.org/wiki/His_and_Her_Circumstances"
    , [ "His and Her Circumstances" ]
    )
  , ( "https://en.wikipedia.org/wiki/Hubris" , [ "hubris" ] )
  , ( "https://en.wikipedia.org/wiki/Hutter_Prize"
    , [ "Hutter Prize" ]
    )
  , ( "https://en.wikipedia.org/wiki/IQ" , [ "IQ" ] )
  , ( "https://en.wikipedia.org/wiki/Iliad" , [ "Iliad" ] )
  , ( "https://en.wikipedia.org/wiki/Infanticide"
    , [ "infanticide" ]
    )
  , ( "https://en.wikipedia.org/wiki/Isaac_Asimov"
    , [ "Isaac Asimov" ]
    )
  , ( "https://en.wikipedia.org/wiki/J.K._Rowling"
    , [ "J.K. Rowling" ]
    )
  , ( "https://en.wikipedia.org/wiki/J._B._S._Haldane"
    , [ "J.B.S. Haldane" ]
    )
  , ( "https://en.wikipedia.org/wiki/Jeff_Dean" , [ "Jeff Dean" ] )
  , ( "https://en.wikipedia.org/wiki/John_L._Fuller" , [ "Fuller" ] )
  , ( "https://en.wikipedia.org/wiki/Joseph_Louis_Lagrange"
    , [ "Lagrange" ]
    )
  , ( "https://en.wikipedia.org/wiki/Just_another_Gibbs_sampler"
    , [ "JAGS" ]
    )
  , ( "https://en.wikipedia.org/wiki/Kantai_Collection"
    , [ "Kancolle" , "Kantai Collection" ]
    )
  , ( "https://en.wikipedia.org/wiki/Karl_Pearson" , [ "Pearson" ] )
  , ( "https://en.wikipedia.org/wiki/Ketamine" , [ "ketamine" ] )
  , ( "https://en.wikipedia.org/wiki/Kevin_Kelly_(editor)"
    , [ "Kevin Kelly" ]
    )
  , ( "https://en.wikipedia.org/wiki/King_Records_%28Japan%29"
    , [ "King Records" ]
    )
  , ( "https://en.wikipedia.org/wiki/LSD"
    , [ "LSD-25" , "LSD" , "lysergic acid diethylamide" ]
    )
  , ( "https://en.wikipedia.org/wiki/LaTeX" , [ "LaTeX" ] )
  , ( "https://en.wikipedia.org/wiki/Laplace%27s_rule_of_succession"
    , [ "Laplace\8217s rule of succession" ]
    )
  , ( "https://en.wikipedia.org/wiki/Lasso_%28statistics%29"
    , [ "lasso" ]
    )
  , ( "https://en.wikipedia.org/wiki/Liability_threshold"
    , [ "liability threshold" ]
    )
  , ( "https://en.wikipedia.org/wiki/LinkedIn" , [ "LinkedIn" ] )
  , ( "https://en.wikipedia.org/wiki/Linux" , [ "Linux" ] )
  , ( "https://en.wikipedia.org/wiki/Lisp_(programming_language)"
    , [ "LISP" , "Lisp" ]
    )
  , ( "https://en.wikipedia.org/wiki/Lisp_machines"
    , [ "Lisp machines" , "Lisp machine" ]
    )
  , ( "https://en.wikipedia.org/wiki/Lithium"
    , [ "Lithium" , "lithium" ]
    )
  , ( "https://en.wikipedia.org/wiki/Littlewood%27s_Law"
    , [ "Littlewood\8217s Law" ]
    )
  , ( "https://en.wikipedia.org/wiki/Love_%26_Pop"
    , [ "Love & Pop" ]
    )
  , ( "https://en.wikipedia.org/wiki/Lucid_dreaming"
    , [ "lucid dreaming" ]
    )
  , ( "https://en.wikipedia.org/wiki/Made_in_Abyss"
    , [ "Made in Abyss" ]
    )
  , ( "https://en.wikipedia.org/wiki/Manifold_%28magazine%29"
    , [ "Manifold" ]
    )
  , ( "https://en.wikipedia.org/wiki/Medical_school"
    , [ "medical school" ]
    )
  , ( "https://en.wikipedia.org/wiki/Medici_bank"
    , [ "Medici bank" ]
    )
  , ( "https://en.wikipedia.org/wiki/Melatonin"
    , [ "Melatonin" , "melatonin" ]
    )
  , ( "https://en.wikipedia.org/wiki/Mescaline" , [ "mescaline" ] )
  , ( "https://en.wikipedia.org/wiki/Mnemosyne_%28software%29"
    , [ "Mnemosyne" ]
    )
  , ( "https://en.wikipedia.org/wiki/Modafinil"
    , [ "Modafinil" , "modafinil" ]
    )
  , ( "https://en.wikipedia.org/wiki/Modus_ponens"
    , [ "modus ponens" ]
    )
  , ( "https://en.wikipedia.org/wiki/Modus_tollens"
    , [ "modus tollens" ]
    )
  , ( "https://en.wikipedia.org/wiki/Moe_%28slang%29" , [ "moe" ] )
  , ( "https://en.wikipedia.org/wiki/Mortar_%28weapon%29"
    , [ "mortar" , "mortars" ]
    )
  , ( "https://en.wikipedia.org/wiki/Mosaic_%28web_browser%29"
    , [ "Mosaic" ]
    )
  , ( "https://en.wikipedia.org/wiki/Mother_Jones_(magazine)"
    , [ "Mother Jones" , "Mother Jones magazine" ]
    )
  , ( "https://en.wikipedia.org/wiki/Multi-level_model"
    , [ "multi-level model" ]
    )
  , ( "https://en.wikipedia.org/wiki/Multiple_comparisons_problem"
    , [ "multiple comparisons" ]
    )
  , ( "https://en.wikipedia.org/wiki/My_Little_Pony:_Friendship_Is_Magic"
    , [ "MLP:FiM" , "My Little Pony: Friendship is Magic" ]
    )
  , ( "https://en.wikipedia.org/wiki/NP-hard" , [ "NP-hard" ] )
  , ( "https://en.wikipedia.org/wiki/Narcissism"
    , [ "Narcissism" , "Narcissistic" ]
    )
  -- , ( "https://en.wikipedia.org/wiki/NeWS" , [ "NeWS" ] )
  , ( "https://en.wikipedia.org/wiki/Neon_Genesis_Evangelion_%28TV%29"
    , [ "Evangelion" , "Neon Genesis Evangelion" ]
    )
  , ( "https://en.wikipedia.org/wiki/Netflix" , [ "Netflix" ] )
  , ( "https://en.wikipedia.org/wiki/Neuroticism"
    , [ "Neuroticism"
      , "neuroticism"
      , "neurotic"
      , "Neurotic"
      , "emotional stability"
      , "Emotional Stability"
      ]
    )
  , ( "https://en.wikipedia.org/wiki/Niccol%C3%B2_Machiavelli"
    , [ "Machiavelli" ]
    )
  , ( "https://en.wikipedia.org/wiki/Nicotine" , [ "nicotine" ] )
  , ( "https://en.wikipedia.org/wiki/Nim_Chimpsky"
    , [ "Project Nim" ]
    )
  , ( "https://en.wikipedia.org/wiki/Nocebo"
    , [ "nocebo effect" , "nocebo" ]
    )
  , ( "https://en.wikipedia.org/wiki/Of_Miracles"
    , [ "Of Miracles" ]
    )
  , ( "https://en.wikipedia.org/wiki/Open_source"
    , [ "open source" , "open-source" ]
    )
  , ( "https://en.wikipedia.org/wiki/Openness_to_experience"
    , [ "Openness"
      , "openness"
      , "open to experience"
      , "Open To Experience"
      ]
    )
  , ( "https://en.wikipedia.org/wiki/Order_statistic"
    , [ "order statistics" ]
    )
  , ( "https://en.wikipedia.org/wiki/Paris_Review"
    , [ "Paris Review" ]
    )
  , ( "https://en.wikipedia.org/wiki/Parthenogenesis"
    , [ "parthenogenesis" ]
    )
  , ( "https://en.wikipedia.org/wiki/Pascal_%28programming_language%29"
    , [ "Pascal" ]
    )
  , ( "https://en.wikipedia.org/wiki/Patreon" , [ "Patreon" ] )
  , ( "https://en.wikipedia.org/wiki/PayPal"
    , [ "PayPal" , "Paypal" ]
    )
  , ( "https://en.wikipedia.org/wiki/Pedigree_chart"
    , [ "pedigree" , "pedigrees" ]
    )
  , ( "https://en.wikipedia.org/wiki/Petard" , [ "petard" ] )
  , ( "https://en.wikipedia.org/wiki/Placebo"
    , [ "placebo effect" , "placebo" ]
    )
  , ( "https://en.wikipedia.org/wiki/Polyamory" , [ "polyamory" ] )
  , ( "https://en.wikipedia.org/wiki/Polygenic_score"
    , [ "polygenic scores" ]
    )
  , ( "https://en.wikipedia.org/wiki/PostScript" , [ "PostScript" ] )
  , ( "https://en.wikipedia.org/wiki/Practice_(learning_method)#Deliberate_practice"
    , [ "deliberate practice" ]
    )
  , ( "https://en.wikipedia.org/wiki/Prediction_market"
    , [ "prediction market" , "prediction markets" ]
    )
  , ( "https://en.wikipedia.org/wiki/Priming_(psychology)"
    , [ "Priming" , "priming" ]
    )
  , ( "https://en.wikipedia.org/wiki/Principal-agent_problem"
    , [ "principal-agent problem" ]
    )
  , ( "https://en.wikipedia.org/wiki/Pugs" , [ "Pugs" ] )
  , ( "https://en.wikipedia.org/wiki/Pumping_Iron"
    , [ "Pumping Iron" ]
    )
  , ( "https://en.wikipedia.org/wiki/Quantified_Self"
    , [ "Quantified Self" ]
    )
  , ( "https://en.wikipedia.org/wiki/R.A._Fisher"
    , [ "R. A. Fisher" , "R. A. Fisher" ]
    )
  , ( "https://en.wikipedia.org/wiki/ROUGE_(metric)" , [ "ROUGE" ] )
  , ( "https://en.wikipedia.org/wiki/Radium"
    , [ "Radium" , "radium" ]
    )
  , ( "https://en.wikipedia.org/wiki/Random_forests"
    , [ "random forests" , "random forest" ]
    )
  , ( "https://en.wikipedia.org/wiki/Rebus" , [ "rebus" ] )
  , ( "https://en.wikipedia.org/wiki/Reddit" , [ "Reddit" ] )
  , ( "https://en.wikipedia.org/wiki/Redshift_%28software%29"
    , [ "Redshift" ]
    )
  , ( "https://en.wikipedia.org/wiki/Reinforcement_learning"
    , [ "RL" , "reinforcement learning" ]
    )
  , ( "https://en.wikipedia.org/wiki/Reliability_(statistics)"
    , [ "reliability" , "reliable" ]
    )
  , ( "https://en.wikipedia.org/wiki/Replication_crisis"
    , [ "failed to replicate" , "failure to replicate" ]
    )
  , ( "https://en.wikipedia.org/wiki/Reproducibility"
    , [ "replicate" , "replicated" ]
    )
  , ( "https://en.wikipedia.org/wiki/Richard_Hamming"
    , [ "Hamming" , "Richard Hamming" ]
    )
  , ( "https://en.wikipedia.org/wiki/Robert_Bakewell_%28agriculturalist%29"
    , [ "Bakewell" , "Robert Bakewell" ]
    )
  , ( "https://en.wikipedia.org/wiki/Rotten.com" , [ "Rotten.com" ] )
  , ( "https://en.wikipedia.org/wiki/Rumi" , [ "Rumi" ] )
  , ( "https://en.wikipedia.org/wiki/SQL" , [ "SQL" ] )
  , ( "https://en.wikipedia.org/wiki/Sadistic_personality_disorder"
    , [ "sadism" , "sadistic" ]
    )
  , ( "https://en.wikipedia.org/wiki/Sam_Altman" , [ "Sam Altman" ] )
  , ( "https://en.wikipedia.org/wiki/Samsung" , [ "Samsung" ] )
  , ( "https://en.wikipedia.org/wiki/Samuel_Johnson"
    , [ "Samuel Johnson" ]
    )
  , ( "https://en.wikipedia.org/wiki/Satya_Nadella"
    , [ "Satya Nadella" ]
    )
  , ( "https://en.wikipedia.org/wiki/Schizophrenia"
    , [ "Schizophrenia"
      , "schizophrenia"
      , "schizophrenic"
      , "schizophrenics"
      ]
    )
  , ( "https://en.wikipedia.org/wiki/Scott_Sumner"
    , [ "Scott Sumner" ]
    )
  , ( "https://en.wikipedia.org/wiki/Siegfried_(opera)"
    , [ "Siegfried" ]
    )
  , ( "https://en.wikipedia.org/wiki/Silk_Road_%28anonymous_marketplace%29"
    , [ "Silk Road" ]
    )
  , ( "https://en.wikipedia.org/wiki/Silk_Road_(marketplace)#Silk_Road_2.0"
    , [ "Silk Road 2" , "Silk Road 2.0" ]
    )
  , ( "https://en.wikipedia.org/wiki/Social_status"
    , [ "social status" ]
    )
  , ( "https://en.wikipedia.org/wiki/Standard_score"
    , [ "z-score"
      , "z-scores"
      , "Z-score"
      , "_z_-score"
      , "_z_-scores"
      , "_Z_-score"
      , "<em>z</em>-score"
      , "<em>z</em>-scores"
      , "<em>Z</em>-score"
      ]
    )
  , ( "https://en.wikipedia.org/wiki/Stewart_Brand"
    , [ "Stewart Brand" ]
    )
  , ( "https://en.wikipedia.org/wiki/Stochastic_gradient_descent#Adam"
    , [ "Adam" ]
    )
  , ( "https://en.wikipedia.org/wiki/Stripe_%28company%29"
    , [ "Stripe" ]
    )
  , ( "https://en.wikipedia.org/wiki/Study_heterogeneity"
    , [ "heterogeneity" ]
    )
  , ( "https://en.wikipedia.org/wiki/Study_of_Mathematically_Precocious_Youth"
    , [ "SMPY" , "Study of Mathematically Precocious Youth" ]
    )
  , ( "https://en.wikipedia.org/wiki/Substituted_amphetamine"
    , [ "amphetamines" ]
    )
  , ( "https://en.wikipedia.org/wiki/Sunk_cost_fallacy"
    , [ "sunk cost fallacy" ]
    )
  , ( "https://en.wikipedia.org/wiki/Superrationality"
    , [ "superrationality" ]
    )
  , ( "https://en.wikipedia.org/wiki/Syntax_highlighting"
    , [ "syntax highlighting" ]
    )
  , ( "https://en.wikipedia.org/wiki/Taliesin" , [ "Taliesin" ] )
  , ( "https://en.wikipedia.org/wiki/The_Better_Angels_of_Our_Nature"
    , [ "The Better Angels of Our Nature" ]
    )
  , ( "https://en.wikipedia.org/wiki/The_Great_Gatsby"
    , [ "The Great Gatsby" ]
    )
  , ( "https://en.wikipedia.org/wiki/The_Guardian"
    , [ "_The Guardian_" , "The Guardian" ]
    )
  , ( "https://en.wikipedia.org/wiki/The_New_York_Times"
    , [ "NYT" , "_New York Times_", "_The New York Times_", "New York Times" , "The New York Times" ]
    )
  , ("https://en.wikipedia.org/wiki/The_New_Yorker", ["the NYer", "_The New Yorker_", "The New Yorker", "NYer", "_New Yorker_", "New Yorker"])
  , ( "https://en.wikipedia.org/wiki/The_Sandman_%28Vertigo%29"
    , [ "Sandman" ]
    )
  , ( "https://en.wikipedia.org/wiki/Thoroughbred"
    , [ "Thoroughbred" , "thoroughbred" ]
    )
  , ( "https://en.wikipedia.org/wiki/Threshold_model#Liability_threshold_model"
    , [ "liability threshold" , "liability-threshold" ]
    )
  , ( "https://en.wikipedia.org/wiki/Troll_(Internet)"
    , [ "trolling" ]
    )
  , ( "https://en.wikipedia.org/wiki/Type_2_diabetes"
    , [ "T2D" , "type 2 diabetes" ]
    )
  , ( "https://en.wikipedia.org/wiki/Umineko_When_They_Cry"
    , [ "Umineko" ]
    )
  , ( "https://en.wikipedia.org/wiki/Unicode" , [ "Unicode" ] )
  , ( "https://en.wikipedia.org/wiki/Usenet" , [ "Usenet" ] )
  , ( "https://en.wikipedia.org/wiki/Valerian_(herb)"
    , [ "Valerian" , "valerian" ]
    )
  , ( "https://en.wikipedia.org/wiki/Valium" , [ "Valium" ] )
  , ( "https://en.wikipedia.org/wiki/Value_of_information"
    , [ "VoI" , "value of information" ]
    )
  , ( "https://en.wikipedia.org/wiki/Vaping" , [ "vaping" ] )
  , ( "https://en.wikipedia.org/wiki/Variance"
    , [ "Variance" , "variance" ]
    )
  , ( "https://en.wikipedia.org/wiki/Vergina_Sun"
    , [ "Vergina sun" ]
    )
  , ( "https://en.wikipedia.org/wiki/Vermilion" , [ "vermilion" ] )
  , ( "https://en.wikipedia.org/wiki/Vitamin_D"
    , [ "Vitamin D" , "vitamin D" ]
    )
  , ( "https://en.wikipedia.org/wiki/Vocaloid" , [ "Vocaloid" ] )
  , ( "https://en.wikipedia.org/wiki/What_Technology_Wants"
    , [ "What Technology Wants" ]
    )
  , ( "https://en.wikipedia.org/wiki/WikiLeaks"
    , [ "Wikileaks" , "WikiLeaks" ]
    )
  , ( "https://en.wikipedia.org/wiki/Wikileaks" , [ "Wikileaks" ] )
  , ( "https://en.wikipedia.org/wiki/William_Gibson"
    , [ "Gibson" , "William Gibson" ]
    )
  , ( "https://en.wikipedia.org/wiki/William_James"
    , [ "William James" ]
    )
  , ( "https://en.wikipedia.org/wiki/Wine_%28software%29"
    , [ "WINE" , "Wine" ]
    )
  , ( "https://en.wikipedia.org/wiki/Wine_(software)" , [ "WINE" ] )
  , ( "https://en.wikipedia.org/wiki/Wired_(magazine)"
    , [ "Wired" ]
    )
  , ( "https://en.wikipedia.org/wiki/WorldCat" , [ "WorldCat" ] )
  , ( "https://en.wikipedia.org/wiki/Wozzeck" , [ "Wozzeck" ] )
  , ( "https://en.wikipedia.org/wiki/Xenophon" , [ "Xenophon" ] )
  , ( "https://en.wikipedia.org/wiki/replication_Crisis"
    , [ "Replication Crisis" ]
    )
  , ( "https://eprint.iacr.org/2002/160.pdf"
    , [ "Cryptology and Physical Security: Rights Amplification in Master-Keyed Mechanical Locks"
      ]
    )
  , ( "https://ero.sagepub.com/content/1/3/2332858415599972?full"
    , [ "Domingue et al 2015"
      , "Polygenic Influence on Educational Attainment"
      ]
    )
  , ( "https://github.com/KichangKim/DeepDanbooru"
    , [ "DeepDanbooru" ]
    )
  , ( "https://github.com/jgm/gitit" , [ "Gitit" , "gitit" ] )
  , ( "https://github.com/linkchecker/linkchecker"
    , [ "linkchecker" ]
    )
  , ( "https://github.com/oduwsdl/archivenow" , [ "archivenow" ] )
  , ( "https://hal.science/hal-00904097/document#pdf"
    , [ "Why do humans reason? Arguments for an argumentative theory" ]
    )
  , ( "https://hpmor.com/"
    , [ "Harry Potter and the Methods of Rationality" ]
    )
  , ( "https://jeffhuang.com/papers/HaloLearning_CHI13.pdf"
    , [ "Mastering the Art of War: How Patterns of Gameplay Influence Skill in Halo"
      ]
    )
  , ( "https://journals.plos.org/plosmedicine/article?id=10.1371/journal.pmed.1000097"
    , [ "Preferred Reporting Items for Systematic Reviews and Meta-Analyses: The PRISMA Statement', Moher et al 2009"
      , "PRISMA"
      ]
    )
  , ( "https://learningtopredict.github.io/#google"
    , [ "Learning to Predict Without Looking Ahead: World Models Without Forward Prediction"
      , "Our agents are only given infrequent observations of the real environment. As a side effect for optimizing performance in this setting, a 'world model' emerges. We show the true dynamics in color, with full saturation denoting frames the policy can see. The black and white outline shows the state of the emergent world model. These world model exhibits similar, but not identical dynamics to forward predictive models but only model 'important' aspects of the environment"
      ]
    )
  , ( "https://longbets.org/661/"
    , [ "661, By 2020, Urban and vertical farms will replace 10% of city produce in Chicago"
      , "By 2020, Urban and vertical farms will replace 10% of city produce in Chicago"
      ]
    )
  , ( "https://mason.gmu.edu/~rhanson/extraord.pdf"
    , [ "When Do Extraordinary Claims Give Extraordinary Evidence" ]
    )
  , ( "https://michaelnielsen.org/" , [ "Michael Nielsen" ] )
  , ( "https://mlp.fandom.com/wiki/Maud_Pie" , [ "Maud Pie" ] )
  , ( "https://openai.com/blog/chatgpt/" , [ "ChatGPT" ] )
  , ( "https://openai.com/index/openai-five-defeats-dota-2-world-champions/"
    , [ "OA5" ]
    )
  , ( "https://pactwebserial.wordpress.com/" , [ "Pact" ] )
  , ( "https://papers.nips.cc/paper/2012/file/c399862d3b9d6b76c8436e924a68c45b-Paper.pdf"
    , [ "AlexNet"
      , "ImageNet Classification with Deep Convolutional Neural Networks', Krizhevsky et al 2012"
      ]
    )
  , ( "https://pdfs.semanticscholar.org/2576/fd36efa9be01a26269e94925283de306cd83.pdf"
    , [ "Consumer Heterogeneity and Paid Search Effectiveness: A Large Scale Field Experiment"
      ]
    )
  , ( "https://people.csail.mit.edu/pkrafft/papers/krafft-thesis-final.pdf"
    , [ "A Rational Choice Framework for Collective Behavior" ]
    )
  , ( "https://people.seas.harvard.edu/~salil/research/timelock.pdf"
    , [ "Time-Lock Puzzles in the Random Oracle Model" ]
    )
  , ( "https://perfdynamics.blogspot.com/2013/09/laplace-bayesianista-and-mass-of-saturn.html"
    , [ "Laplace the Bayesianista and the Mass of Saturn" ]
    )
  , ( "https://predictionbook.com/"
    , [ "PredictionBook" , "PredictionBook.com" ]
    )
  , ( "https://x.com/theshawwn" , [ "Shawn Presser" ] )
  , ( "https://web.archive.org/web/20140527121332/https://www.infinityplus.co.uk/stories/under.htm"
    , [ "\"Understand\"" ]
    )
  , ( "https://web.archive.org/web/20161021035119/http://www.ibooksonline.com/88/Text/hell.html"
    , [ "Hell is the Absence of God" ]
    )
  , ( "https://www.amazon.com/Turings-Cathedral-Origins-Digital-Universe/dp/1400075998/"
    , [ "Turing\8217s Cathedral" ]
    )
  , ( "/doc/cat/psychology/drug/catnip/2013-avmf.pdf"
    , [ "Genome-Wide Association Study for Catnip Response in Domestic Cats', Lyons 2013"
      , "catnip GWAS"
      ]
    )
  , ( "https://www.biorxiv.org/content/10.1101/016477.full"
    , [ "Eight thousand years of [human] natural selection in Europe" ]
    )
  , ( "https://www.biorxiv.org/content/10.1101/078014.full"
    , [ "Educational attainment and personality are genetically intertwined"
      ]
    )
  , ( "https://www.biorxiv.org/content/10.1101/106203.full"
    , [ "Genomic analysis of family data reveals additional genetic effects on intelligence and personality"
      ]
    )
  , ( "https://www.biorxiv.org/content/10.1101/190124.full"
    , [ "Accurate Genomic Prediction Of Human Height"
      , "Lello et al 2017"
      ]
    )
  , ( "https://deepmind.google/discover/blog/agent57-outperforming-the-human-atari-benchmark/"
    , [ "Agent57"
      , "Agent57: Outperforming the Atari Human Benchmark', Badia et al 2020"
      ]
    )
  , ( "https://deepmind.google/discover/blog/learning-through-human-feedback/"
    , [ "Learning through human feedback" ]
    )
  , ( "https://deepmind.google/discover/blog/prefrontal-cortex-as-a-meta-reinforcement-learning-system/"
    , [ "Prefrontal cortex as a meta-reinforcement learning system" ]
    )
  , ( "https://deepmind.google/discover/blog/wavenet-a-generative-model-for-raw-audio/"
    , [ "WaveNet: A Generative Model for Raw Audio" ]
    )
  , ( "https://www.dougengelbart.org/pubs/papers/scanned/Doug_Engelbart-AugmentingHumanIntellect.pdf"
    , [ "Augmenting Human Intellect: A Conceptual Framework"
      , "Engelbart 1962"
      ]
    )
  , ( "/doc/statistics/bayes/2014-mellor.pdf"
    , [ "Decision Making Using Thompson Sampling" , "Mellor 2014" ]
    )
  , ( "https://www.fimfiction.net/story/62074/Friendship-is-Optimal"
    , [ "Friendship is Optimal" ]
    )
  , ( "https://www.lesswrong.com/"
    , [ "Less Wrong" , "LessWrong" , "LessWrong.com" ]
    )
  , ( "https://www.lesswrong.com/tag/computing-overhang"
    , [ "hardware overhang" ]
    )
  , ( "https://www.lesswrong.com/tag/inside-outside-view"
    , [ "Outside View" , "outside view" ]
    )
  , ( "https://www.lightspeedmagazine.com/fiction/exhalation/"
    , [ "Exhalation" ]
    )
  , ( "https://www.nature.com/articles/mp2014188/"
    , [ "Genetic contributions to variation in general cognitive function: a meta-analysis of genome-wide association studies in the CHARGE consortium (<em>n</em> = 53949"
      ]
    )
  , ( "https://www.nature.com/articles/mp2016107"
    , [ "Predicting educational achievement from DNA" ]
    )
  , ( "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3270388/"
    , [ "The time resolution of the St Petersburg paradox" ]
    )
  , ( "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3652710/"
    , [ "Common DNA Markers Can Account for More Than Half of the Genetic Influence on Cognitive Abilities"
      ]
    )
  , ( "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3969807/"
    , [ "The 1% of the population accountable for 63% of all violent crime convictions"
      ]
    )
  , ( "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4313871/"
    , [ "The contribution of <em>de novo</em> coding mutations to autism spectrum disorder"
      ]
    )
  , ( "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4417674/"
    , [ "CRISPR/Cas9-mediated gene editing in human tripronuclear zygotes"
      ]
    )
  , ( "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4883595/"
    , [ "Genome-wide association study identifies 74 [162] loci associated with educational attainment"
      , "Genome-wide association study identifies 74 loci associated with educational attainment"
      , "Okbay et al 2016"
      ]
    )
  , ( "https://www.nplusonemag.com/issue-3/reviews/adventures-of-a-man-of-science/"
    , [ "Adventures of a Man of Science" , "Batuman 2005" ]
    )
  , ( "https://www.teds.ac.uk/about-teds"
    , [ "TEDS" , "Twins Early Development Study" ]
    )
  ]
