HNHacker News
TopNewBestAskShowJobs

jodent

1 karma · joined September 6, 2014

submissionscomments
jodent··on Show HN: Franc – Detect natural languages
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?)
jodent··on Show HN: Franc – Detect natural languages
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'));