isfinnish
v0.2.5
Published
Checks if the input language is Finnish
Downloads
3
Readme
isfinnish
NodeJS module for checking whether is the input language is Finnish. Install using npm install isfinnish
.
Example
var isfinnish = require('isfinnish');
isfinnish("Kannattaisi aina investoida pari minuuttia laitteiden käyttöohjeiden lukemiseen.", function(data) {
console.log('Is finnish: ' + data.finnish);
});
// Is finnish: true
isfinnish("Let's see if I can explain each of those items.", function(data) {
console.log('Is finnish: ' + data.finnish);
});
// Is finnish: false
Usage
isfinnish( input_text, callback( output_text ) )
Isfinnish returns object to callback function.
{ percentage: 50, finnish: true }