{"uid":"cap_6PQEeYOWN5oqor8nKyqwi","slug":"openverbs-inflect-count-based-noun-inflection-916b3a1a","name":"OpenVerbs Inflect - Count-Based Noun Inflection","description":"Choose the singular or plural form for a given count, e.g. (apple, 3) → \"apples\", (apple, 1) → \"apple\". By default the count is prepended (\"3 apples\"); set includeCount=false to omit it.","url":"https://inflect.openverbs.com/v1/count","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["word","count"],"properties":{"word":{"type":"string","maxLength":256,"minLength":1,"description":"The noun to inflect."},"count":{"type":"integer","maximum":1000000000000,"minimum":0,"description":"The quantity."},"includeCount":{"type":"boolean","description":"Prepend the count to the result. Default true."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1D4-XAm6w68nhAlTtUSjF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the singular or plural form of a noun based on a numeric count, optionally prepending the count to the result (e.g. 'apple' + 3 → '3 apples').","exampleAgentPrompt":"What's the correct phrasing for 'item' when there are 5 of them — should it be '5 item' or '5 items'? Use the count inflection service to get the properly formatted string with the count included.","exampleUseCases":[{"title":"Dynamic UI label generation","prompt":"I need to display a message like '1 file uploaded' or '3 files uploaded' depending on how many files the user selected — can you use the inflect service to get the correctly formatted phrase for 'file' with a count of 3?"},{"title":"Irregular noun pluralization for reports","prompt":"I'm building a summary report and need to say how many people attended — can you inflect 'person' with a count of 42 so it shows up as '42 people'?"},{"title":"Zero-count edge case formatting","prompt":"What does the inflect API return for 'apple' with a count of 0? I want to make sure my app correctly shows '0 apples' and not '0 apple'."}],"resultDescription":"A string containing the correctly inflected singular or plural form of the noun. By default the count is prepended (e.g. '3 apples', '1 apple'); if includeCount is set to false, only the bare inflected word is returned (e.g. 'apples', 'apple'). Handles English irregular forms correctly.","failureModes":["Missing required 'word' field returns a validation error","Missing required 'count' field returns a validation error","Count outside the allowed range (0–1,000,000,000,000) returns a validation error","Word exceeding 256 characters returns a validation error","Non-integer count value returns a schema validation error","Unknown or very exotic words may fall back to naive -s pluralization"],"whenToPreferThis":"Use this endpoint when you need grammatically correct singular/plural noun forms tied to a specific numeric count, especially when you also want the count prepended in a single formatted string. Prefer this over the plain plural/singular sibling endpoints when you have a concrete quantity at hand and want a ready-to-display phrase like '3 apples' or '1 apple' without assembling the string yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:41:19.686Z","isFirstParty":false}