Globalization Made Easy
npm install brumalisAI, ML, and GeoData package developed inhouse for the website fulminata. It is a complete package which includes :-
n-grams and naive bayes
Stripe or something)
naive bayes and K-Means
npm i brumalis (for npm)\
yarn add brumalis (for yarn)
import and require syntaxes.
js
const brumalis = require("brumalis");
// or
import * as brumalis from "brumalis";
`
Some Examples
$3
`js
const brumalis = require("brumalis");
console.log("First Name = " + brumalis.getFirstName("Tom Brady") +
", Last Name = " + brumalis.getLastName("Tom Brady"));
`
Output
`shell
First Name = tom, Last Name = brady
`
$3
`js
const brumalis = require("brumalis");
console.log(brumalis.getNativeTextFromLanguageCode("AM"));
`
Output
`shell
አማርኛ
`
$3
`js
const brumalis = require("brumalis");
console.log(brumalis.identifyLanguageFromText("je vole vers les nuages"));
`
Output
`shell
{
Status: 'OK',
response: {
maxScore: 0.652,
percentage: 65,
langDetected: 'french',
},
}
`
$3
`js
const brumalis = require("brumalis");
console.log(brumalis.getGender("Bob","EN"));
`
Output
`shell
male
`
Docs
getFirstName(fullName) : Returns First Name when Given Full Name\
getLastName(fullName) : Returns Last Name when Given Full Name\
getGender(firstName,lang = "EN") : firstName is the firstName of the Person we want to get the Gender of, lang is the language that person speaks. lang is set to english as default.\
getCountryCode(country) : Returns the 2 letter Country Code\
getCurrencyFromCountryCode(countryCode) : Returns the country from the 2 letter Country Code\
getNativeTextFromLanguageCode(langCode) : Returns the Native Text from the 2 letter Language Code\
getPhoneCodeFromCountryCode(countryCode) : Returns the Phone Code from the 2 letter Country Code\
getCountryFromCountryCode(countryCode)` : Returns the Country from the 2 letter Country Code