News for hackers. Stuff that matters.
Re:Show HN: Detecting the Programming Language of Code Using... by wwwigham on Monday July 18, 2016 @03:24PM (#12117465)
Did the JS corpus not contain any es6 syntax? The statement

  let x = {}
doesn't even register as JS.
Re:Show HN: Detecting the Programming Language of Code Using... by pprogrammer on Monday July 18, 2016 @03:36PM (#12117557)
It probably does not contain a lot of es6 syntax, and the let keyword probably occurs a lot more in other languages (Swift, Haskell, Lua). You could try to add more code to disambiguate it, for example adding a semicolon already displays it as second.