spit(1)

spit1

Translate some text through a large language model

Usage

spit [OPTION ...]

Overview

Passes standard input to a Large Language Model (LLM) instance and prints the response. With the --to option, it translates standard input to the specified language through a Large Language Model (LLM) and prints the translation.

Warning: The output might not be what you expect. It might be of the wrong form, be of poor quality, or reflect some biases.

Options

--species=TYPE

Specifies the type of LLM. The default and only valid value is 'ollama'.

--url=URL

Specifies the URL of the server that runs the LLM.

-m, --model=MODEL

Specifies the model to use.

--to=LANGUAGE

Specifies the target language.

--prompt=TEXT

Specifies the prompt to use before standard input. This option overrides the --to option.

--postprocess=COMMAND

Specifies a command to post-process the output.

Informative output:

-h, --help

Display this help and exit.

-V, --version

Output version information and exit.

Author

Written by Bruno Haible.

Reporting bugs

Report bugs in the bug tracker at <https://savannah.gnu.org/projects/gettext> or by email to <[email protected]>.

From gettext 1.0-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.