VoiceGem

How to say a logical AND when dictating a condition

Say “double ampersand” or “logical and” to produce && spaced on both sides, so “if ready logical and open” assembles as if ready && open. The second phrasing is worth learning because it says what the operator does, which is easier to reach for mid-sentence than a character name.

A twelve-word compound condition costs about 14 seconds to type and about 4.4 seconds to say. (sources: Dhakal, Feit, Kristensson & Oulasvirta, “Observations on Typing from 136 Million Keystrokes”, CHI 2018, 168,000 participants, 136 million keystrokes; Yuan, Liberman & Cieri, “Towards an Integrated Understanding of Speaking Rate in Conversation”, Interspeech 2006, 2,438 American English telephone conversations (Switchboard corpus). The speech figure is conversational rate, not a measured dictation rate — no such measurement exists.)

What lands in your editor
if isReady && queueDepth > 0 {

This tool runs entirely in your browser. Nothing you type is sent anywhere, stored, or logged.

Step by step

  1. 1

    Say the first condition

    Speak the left clause in full, including any casing command for its identifier. VoiceGem builds the name and then waits for the operator phrase.

  2. 2

    Say “logical and”

    Use the operation name rather than the character name when you are mid-thought. Both phrases reach the same table entry, so the output is identical either way.

  3. 3

    Chain as many clauses as you need

    Repeat the phrase between each pair. Three clauses need two operators and each is an independent lookup, so nothing accumulates state between them.

  4. 4

    By hand

    Press Shift-7 twice. For a single operator that is quicker, and most editors offer no assistance either way.

“Logical and” names the operation, which is why it is the better phrase to learn

VoiceGem's alias for this operator is unusual in describing behaviour rather than appearance. “Double ampersand” tells you what the characters look like; “logical and” tells you what the operator does, and a developer mid-sentence in a boolean condition is thinking about the second thing.

The same pairing exists for the double pipe, which answers to “logical or”. Both aliases were chosen because a compound condition is dictated as a thought rather than as a sequence of glyphs, and the Deterministic Pass accepts whichever way you were thinking.

Where the manual way breaks

Two shifted keystrokes is cheap, and a lone operator is faster typed than said. The comparison is not close.

Compound guards are where the whole line gets expensive. Three clauses with cased identifiers and a comparison is thirty or forty keystrokes across the width of the keyboard, and it is a line where an inverted clause survives review because the condition still reads plausibly. Dictating it in VoiceGem builds every identifier and places every operator in one pass.

Doing this somewhere else? our speech-to-code converter, the single ampersand, step by step, what changes for the logical OR operator, or the exclamation mark.

Common questions

Yes. Both phrases reach the same entry in VoiceGem's table and produce the same two characters with the same spacing.

Yes. Say the phrase between each pair of clauses. Every lookup is independent, so there is no limit and no accumulated state.

Say “bang” before the clause, then a casing command for the identifier. The exclamation mark attaches on both sides, so it binds tight against the name.

Dictate a three-clause guard and check every operator landed.

Open the tool