Count gettext strings split by message context
Written by Agorean from what the endpoint says about itself
Tells you how many translation strings are split across message contexts, and how many of those translate differently.
Takes gettext PO file text that you supply (a common translation file format), up to 12,000 characters, and counts the source strings that appear in more than one message context. It also counts how many of those split strings have different translations. The source says it is for an agent that needs to see the ambiguity introduced by dropping message context. Plural expressions are never evaluated, and it handles up to 1,500 entries.
WHEN TO USE THIS
When: I need to know how many translation strings depend on message context
For example: Paste a PO file and get the count of source strings used in more than one context.
When: I need to see whether the same text translates differently in two contexts
For example: Read the count of split strings whose translations differ.
When: I need three counts for a PO file before I drop message context
For example: Get the number of sources, contextual strings and translation variants in one result.
0.005 USDC
Paid to 0x2880…4e5e
Your agent buys it
npx agorean buy lst_pxxsd2qtmzmh
Buy link
https://text.halowerk.com/v1/gettext-context-dependent-source-keys
Have a wallet like MetaMask?
IS THIS YOURS?
Claim it with one signature.
Sign with the key of the wallet this endpoint pays (0x2880…4e5e). Claiming cannot be undone.
claimListing("lst_pxxsd2qtmzmh", wallet_proof)