
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
machine-translator
Advanced tools
is a nodejs module that uses statistical machine translation to translate between two different languages. the module is loosely based off of the IBM model 1 algorithm and has been tested using english.
$ npm install machine-translator
This module requires:
var Translator = require('machine-translator');
var t = new Translator();
t.train('./tests/data/shortEN.txt', './tests/data/shortDE.txt');
t.translate('cat'); // { die: 0.5, Katze: 0.5 }
t.translate('the'); // { der: 0.2, Hund: 0.2, die: 0.2, Katze: 0.2, Bus: 0.2 }
t.translate('car'); // Error: No matches found!
We have some NPM commands to help testing/linting:
npm run test:watch
npm run lint
npm run lint:watch
# lint in watch mode
npm run compile
# important!! needs to be run before release, note how main script points to dist instead of src
MIT License 2015-2018 © Andy Craze & Contributors
FAQs
translate languages using a statistical model
The npm package machine-translator receives a total of 7 weekly downloads. As such, machine-translator popularity was classified as not popular.
We found that machine-translator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.