News for hackers. Stuff that matters.

jodent

Re:Show HN: Franc – Detect natural languages on Friday October 03, 2014 @11:07AM (#8405834)
No it doesn't, still takes French for Catalan (French only comes at third place, after Italian), and Swedish for Dutch. (Arguably those are close languages, but hey, this is why I'm using this, right?)
Re:Show HN: Franc – Detect natural languages on Friday October 03, 2014 @10:58AM (#8405795)
Quick test:

  ron? snn
  fra? cat
  swe? nds
  ita? und
  nld? gax
Source:

  var franc = require('franc');
  console.log('ron?', franc('Cate bere ai baut?'));
  console.log('fra?', franc('C\'est quoi le bordel la, putain'));
  console.log('swe?', franc('Jag kanner en bot, hon heter Anna'));
  console.log('ita?', franc('che guai'));
  console.log('nld?', franc('graag gedaan'));