from Hacker News

Ask HN: Why does HN strip out “how” from the start of titles?

by karanke on 6/22/20, 11:54 PM with 5 comments

Every time I've tried to post a link with the title "How X", HN strips out the How and changes the title to "X".

Wondering why this is the case and if there is any planned fix. Thanks!

  • by rococode on 6/23/20, 3:59 AM

    HN does this with some words, mostly ones that would typically be used in a clickbaity way, I believe.

    I just tried posting "10 ways to test if this title works on HN" (the number thing being one I recall encountering before). The title was automatically changed to "How to test if this title works on HN". So there is definitely support for automatically editing some common clickbait title phrases.

    It seems to be regex, I tried again with "12 ways to test if HN automatically formats titles" and it was also changed to "How to test ...".

    If it breaks your title, you can fix it manually! You should see an `edit` under the title that will link to you an editing page that allows you to edit the title. This works with both link posts and text posts. I was able to change the title of my test post back to "10 ways to test ..." and it correctly updated to show that title with no modifications.

    And I just now realized that this is actually one of the probably few things not mentioned on that one repo [1] that documents undocumented HN features!

    [1] https://github.com/minimaxir/hacker-news-undocumented

  • by tonyrice on 6/22/20, 11:56 PM

    Does it happen with anything besides how? So when you post something like "How to bake a potato", does it translate to "To bake a potato"?
  • by gtirloni on 6/23/20, 2:25 AM

    The Ask page currently has 6 submissions with "How to".