
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@morphgrid/joiner
Advanced tools
FST-based token joining with morphological analysis for intelligent text composition.
FST-based token joining with morphological analysis for intelligent text composition.
This package provides the core join decision logic for the morpho-wasm system. Instead of using custom rule files, it leverages existing GiellaLT/Apertium morphological transducers to make linguistically accurate decisions about how tokens should be combined.
The joiner uses a morphological analysis-first approach:
prn
, det
, vblex
)Unlike traditional approaches that require maintaining separate rule files, this system:
decideJoin(prev, next, lang, options?)
Makes a join decision for two tokens in a given language.
import { decideJoin } from '@morphgrid/joiner';
const decision = await decideJoin('je', 'aime', 'fr-FR', {
hfst: hfstAdapter // Optional HFST adapter for morphological analysis
});
// Returns:
// {
// surfacePrev: "j'",
// surfaceNext: "aime",
// joiner: "",
// noSpace: true,
// reason: "French elision: je + aime → j'aime"
// }
interface JoinDecision {
surfacePrev: string; // Modified previous token
surfaceNext: string; // Modified next token
joiner: string; // String to insert between tokens ('', ' ', '-', etc.)
noSpace: boolean; // Whether tokens should be joined without space
reason: string; // Human-readable explanation
}
je + aime → j'aime
, le + homme → l'homme
prn
, det
, prep
tags to identify elision candidatesde + el → del
, a + el → al
dar + me → darme
(basic, FST needed for accents)Haus + Tür → Haustür
When HFST analysis is unavailable, the system:
This package is designed to work with the morpho-wasm core system:
import { morph } from '@morphgrid/core';
// The core system automatically uses this joiner
const result = await morph.join('je', 'aime', 'fr-FR');
The joiner is designed to be:
FAQs
FST-based token joining with morphological analysis for intelligent text composition.
The npm package @morphgrid/joiner receives a total of 24 weekly downloads. As such, @morphgrid/joiner popularity was classified as not popular.
We found that @morphgrid/joiner demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.