# Cantillation rule catalogue and source audit

12 November 2026. This describes the prose-system engine with the maqqef and
Breuer counting corrections, the [three Breuer refinements](breuer-three.md),
and the optional soft initial בגדכפת evidence (off by default). It records what is
implemented, what the sources support, and what is still missing. The separate
[Munaḥ/Pashta–Zaqef error list](zaqef-swap-errors.md) preserves the earlier
counting audit, including every two-unit case from that comparison. The
[new change list](breuer-three-changes.md) records changes from the three
refinements and the optional evidence setting.

The current predictor also incorporates the [evidence-policy review](evidence-policy.md); retired grammatical repairs remain retired.

## How to read a rule

An **accentual unit** is one word or a maqqef-connected group. A **full vowel**
excludes sheva and ḥataf; a **nucleus** may include either, according to the
particular rule. Counts before stress exclude the stressed vowel unless a
description explicitly says “through the stress.” These conventions are not
interchangeable.

A **strict constraint** removes a complete candidate reading. A **preference**
ranks legal readings and can be outweighed or revised by later grammatical
mapping. A **rendering rule** adds a written sign to the chosen primary accent.
A **grammatical hypothesis** proposes a grouping; it is not automatically a
traditional accent law. A learned model supplies corpus-based scores rather
than a finite list of categorical linguistic rules.

“Implemented” and “independently confirmed in this audit” are different claims.
The appendix inventories every exported rule declaration, including overlapping
and inactive alternatives, with its operational status. The sections before it
also cover behavior not represented by a `RULES` declaration.

## Sources actually checked

- **Wickes, 1887, *A Treatise on the Accentuation of the Twenty-One So-Called
  Prose Books***: the original public-domain book was consulted, especially
  pp. 62, 75–83, 89–93, 99–118. [Original scan](https://archive.org/details/treatiseonaccent00wickuoft).
  His “Azla” is the conjunctive called Qadma here. His emendations of transmitted
  exceptions are not adopted merely because he calls a reading erroneous.
- **Khan, 2020, *The Tiberian Pronunciation Tradition of Biblical Hebrew*, I**:
  pp. 458–463 and 480–481 were checked in a searchable reproduction of the book.
  [Publisher](https://doi.org/10.11647/OBP.0163),
  [consulted text](https://dokumen.pub/the-tiberian-pronunciation-tradition-of-biblical-hebrew-volume-1-9781783746750-9781783746767-9781783746774.html).
  This supports the secondary-stress interpretation, including effects without
  a written gaʿya. The publisher PDF did not load during this audit.
- **Breuer, 1971**, “נוסח הטעמים ב׳כתר׳ לאור ספרו של ישראל ייבין,”
  *Leshonenu* 35, pp. 85–98, 175–191: the original
  [concluding part](https://www.jstor.org/stable/24366508), pp. 183–185 and
  p. 184 n. 45, was read in the institutional JSTOR reader. This confirms
  the word-length/interval distinction and the like-quality ḥataf qualification.
  The passage supplies no formula resolving the remaining two-unit errors.
- **Breuer, *טעמי המקרא בכ״א ספרים ובספרי אמ״ת***: the user's original
  `breuer.pdf` was checked directly at the reader's glossary, p. טז, and
  chapter IV §§7–12, pp. 112–115. The Word transcription was only a search
  aid; OCR was verified against the scan. The glossary supplies the
  conjunctive-shuruq and closed-long-vowel qualifications now implemented.
  Section 8 explicitly lists three of the remaining cases and says
  exceptions are more frequent with a first-syllable-stressed first word.
  Section 8 n. 5 suggests analogy with parallel expressions for some other
  examples. Sections 9–12 distinguish the optional rule for a two-unit ending
  after an earlier secondary disjunctive. [Detailed findings](zaqef-promotion.md#what-the-later-book-says-about-exceptions).
  The present implementation also checks II §§49–50, pp. 59–61; III §§12–17,
  pp. 90–94, especially notes 11 and 15; and chapter VIII's gaʿya classes.
  [Exact executable conditions and limits](breuer-three.md).
- **Breuer, 1958, *Pissuḳ ṭeʿamim she-ba-Miḳra***: the earlier repository
  [source-and-corpus audit](breuer-rules.md) documents six restrictions, section
  numbers, exceptions and denominators. In addition, §115, p. 90 n. 4 was
  directly read in the [Otzar scan](https://tablet.otzar.org/#/book/13595/p/102/t/827980/fs/0/start/0/end/0/c):
  it explicitly lists Numbers 30:2, זה הדבר, as a rare long-word Munaḥ
  exception. It does not give a predicting condition for that exception.
- **Gesenius, §§16 and 37**: the [meteg discussion](https://en.wikisource.org/wiki/Gesenius%27_Hebrew_Grammar/16)
  and [maqqef/dagesh discussion](https://en.wikisource.org/wiki/Gesenius%27_Hebrew_Grammar/37)
  support the correction to syllable closure across maqqef. The update
  fixes Exodus 3:13. The combined source-based changes also fix Deuteronomy
  30:2 but introduce a new ranking error at Deuteronomy 5:25;
  [complete audit and tests](zaqef-promotion.md#counting-correction-audit).
- **Price, 2010, revised *The Syntax of Masoretic Accents in the Hebrew Bible***:
  [author-hosted PDF](https://jamesdprice.com/images/21_Syntax_of_Accents_rev._ed..pdf).
  Pages 33–38 and 119–129 were checked during the evidence-policy review for
  grammatical relationships, accent domains and the distinction between a
  domain boundary and a near disjunctive's written position. Other page
  attributions in the code remain inherited documentation; they are not all
  certified anew.

## Related rules that check out, and their implementation

| Phenomenon | Condition and qualification | Engine status |
| --- | --- | --- |
| Munaḥ → Pashta before Zaqef | In a complete **two-unit** Zaqef group, at least two full pre-stress vowels, weighting an eligible secondary-stressed vowel twice, favour promotion. Conjunctive shuruq is reduced unless followed by sheva; a closed long vowel also makes the word long. Same-quality immediate ḥataf prevents doubling. Written meteg is not required. | Implemented as a five-point preference; [full implementation audit](zaqef-promotion.md). Breuer glossary p. טז and IV §7; Khan pp. 462–463, 480–481; Wickes pp. 75–76. |
| Long-word Munaḥ exceptions before Zaqef | Exceptions are more frequent when the first word is stressed in its first syllable, including after initial sheva/ḥataf. Parallel expressions may explain some other exceptions. | Legal alternatives are retained. **No separate tiny-first preference or parallel-expression rule** is implemented. Breuer IV §8, pp. 112–113, n. 5; the reference recount finds Munaḥ in 92/422 tiny-first long groups versus 49/1,921 others. |
| Two-unit ending after an earlier secondary disjunctive in a Zaqef group | Pashta may divide the ending when **either** word is long; division is optional and often absent. This differs from the complete-domain rule. | **No dedicated optional length preference** is implemented for this setting. The complete-domain preference does not apply here. Breuer IV §§9–12, pp. 113–115. |
| Munaḥ → Merkha before Zarqa | With two servants, major-gaʿya eligibility in the Zarqa word favours Merkha in the nearest position. An earlier Munaḥ instead requires the nearer servant to remain Munaḥ. Wickes also discusses preceding paseq and exceptions. | **Implemented with explicit abstention:** earlier Munaḥ requires another Munaḥ; after Qadma, paseq or established light-gaʿya eligibility favours Merkha. Other unresolved gaʿya classes leave the preference open. Breuer III.16–17, pp. 92–94; [exact conditions](breuer-three.md). |
| Internal Merkha with Tevir | Without an external servant, a long vowel followed by simple sheva immediately before the Tevir stress may take Merkha in place of meteg. An intervening full vowel or compound sheva normally retains meteg; tradition and manuscript exceptions matter. | **Missing:** 68 admitted reference words have this pair. Source examples include Deut. 13:10 and 13:16. Wickes p. 109 and nn. 31–32. These are occurrence counts, not 68 successful tests of a predictor. |
| Internal Qadma with Geresh | A noninitial light-meteg position may become Qadma when no external servant precedes. Wickes distinguishes heavy meteg, vowel-form exceptions, and the following-Revia setting; preceding Telisha Gedola changes that setting. | **Partial:** long final-stress Geresh is kept legal in anticipation of internal Qadma, but no Qadma is generated. 125 admitted reference words carry the pair, including Gen. 48:4. Wickes pp. 112–113 and notes. |
| Internal Mahpakh with Pashta | Particular compound words can carry an internal servant; Wickes discusses ש־ compounds. This is not a blanket “long word” test. | **Missing:** seven admitted reference words have Mahpakh + Pashta, including Song 1:7, 1:12, 3:4. Wickes p. 107. |
| Internal Qadma with a conjunctive | Qadma can occur with Mahpakh, Merkha or Darga in the same unit in a small set of attested constructions. | **Missing, including representation:** Lev. 25:46, Num. 20:1 and Deut. 8:16 have relevant pairs in MAM but are excluded by the current ambiguous-primary adapter. Wickes pp. 110–111. No general predictive formula has been established here. |
| Internal Munaḥ with Pazer | Wickes singles out אָנָּא in Gen. 50:17. | **Missing:** the reference has it, but this isolated attestation does not justify inventing a general length rule. Wickes p. 114 n. 10. |
| Merkha / Tevir before Tipḥa | A short two-unit Tipḥa group takes Merkha. A longer ending can allow Tevir, but does not require it. | Implemented conservatively through `potentialLong`; this is not the new weighted-full-vowel calculation. Wickes p. 89. |
| Servant / Geresh before Revia | A two-unit Revia group normally uses its servant; Geresh/Gershayim is also found with a long ending. Wickes presents this as optional variation. | Legal sequences exist, but **no dedicated two-unit length preference** is implemented. Wickes p. 93; examples include Lev. 26:30 and Deut. 34:11. |
| Geresh immediately before Pashta / Tevir / Zarqa | A sufficiently long following word permits survival of Geresh where a conjunctive transformation is otherwise expected. | Implemented: three pre-stress nuclei, including reduced nuclei, are required by the stronger Breuer rule. Unknown stress remains open. Wickes pp. 99–100; inherited Breuer §73 audit. |
| Mahpakh / Merkha before Pashta | At least one intervening nucleus or initial sheva selects Mahpakh; touching stresses select Merkha. Paseq does not count. Vocal sheva and furtive pataḥ matter to the interval. | Implemented strictly when pronunciation is known; the shared helper and strict solver agree. Breuer III.12–14, pp. 90–91 n. 11 corrects the paseq treatment. |
| Darga / Merkha before Tevir | Two counted intervening nuclei or paseq select Darga. Shorter intervals ordinarily take Merkha; the documented one-nucleus Darga exceptions remain available. Simple vocal sheva after a vowel is generally omitted from this count. | Implemented with special counting and unknown-sheva handling. Wickes pp. 108–109. |
| Earlier Qadma / Munaḥ | Before the last servant of Pashta, Tevir or Zarqa, initial stress favours Munaḥ; a pre-stress nucleus favours Qadma. After Telisha Qetana, use Qadma even at initial stress. | Implemented, with a separate repeated-Zarqa allowance. Wickes pp. 109–110. |
| Yetiv / Pashta | Initial stress without a preceding servant permits the Yetiv form; a preceding servant or a pre-stress vowel calls for Pashta. Initial reduced vowels need separate treatment. | Implemented as strict conditions plus a preference in the reduced-vowel case. Wickes pp. 106–107. |
| Geresh / Gershayim | A preceding Qadma or a post-stress nucleus calls for Geresh. Final stress generally calls for Gershayim, but a long word may carry internal Qadma with Geresh. | Implemented conservatively for primary accents; internal Qadma is not rendered. Wickes pp. 112–113. |
| Internal Munaḥ, Metiga and Zaqef Gadol | External servants, eligible open/closed pretonic syllables, distance, vowel quality and some maqqef-prefix structures affect the form. | Implemented as Zaqef rendering and partial strict form restrictions; the optional additional primary-form scoring preference is off by default. [Detailed audit](zaqef-forms.md); Wickes pp. 80–83. |
| Telisha Gedola / Pazer before Geresh | Zero or one intervening accentual unit favours Telisha Gedola; greater distance favours Pazer. Exceptions occur in **both** directions. | Implemented as a preference, never a distance-based prohibition. Wickes pp. 115–117. |

The complete recount finds 25 two-servant **Munaḥ–Munaḥ–Zarqa** contexts,
including one final Munaḥ + paseq, and no **Munaḥ–Merkha–Zarqa** context in
18,532 admitted verses. The strict solver now enforces Breuer's earlier-Munaḥ
condition. Single-servant Merkha–Zarqa is still permitted where otherwise
licensed; the new rule does not require an earlier Qadma in every setting.
The transformed-Geresh distance preference agrees with all 722 applicable
reference contexts. Soft initial בגדכפת agrees with all 6,162 pointed
contexts but is optional because the pointing may already encode the answer.
See the [rule-by-rule evaluation](breuer-three.md) for prediction regressions
as well as improvements.

The six additional restrictions already documented in [Breuer rules](breuer-rules.md)
are all implemented: the three-nucleus Geresh continuation; short Munaḥ before
Gershayim; the first-of-two Munaḥ condition before Etnaḥta; at least one short
servant in Darga–Merkha Kefula–Tipḥa; the earlier-small-accent condition for
three servants before Revia; and necessary Merkha–Zarqa eligibility. The
earlier study's positive checks are respectively 21, 141, 30, 14, 7 and 89
known-pronunciation instances. Two further instances have unknown stress.
Those are inherited preservation checks, not newly measured prediction accuracy.

## What remains uncertain or incomplete

- The new Zaqef weighting is not a general phonology/meteg engine. Its
  secondary-stress eligibility is inferred from supplied vowels, syllables
  and word boundaries. The older `potentialLong` and learned `longWord`
  helpers use different, coarser tests. Their names do not make them equivalent.
- Internal accents outside Zaqef are not generated. Besides the cases above,
  the admitted reference contains Munaḥ + Revia (5), Merkha + Tipḥa (12),
  Merkha + Silluq (5), Munaḥ + Etnaḥta (2), and Merkha + Pashta (1).
  These counts identify missing output coverage; they do not establish a rule
  for predicting each pattern. Meayla and units with two conjunctives also
  expose limitations of primary-accent extraction. Num. 28:26 is excluded
  for this reason; its absence from the admitted cohort is not evidence of absence.
- Broad phonological laws cannot automatically decide a grammatical division.
  Wickes' long-word exceptions include tightly attached particles, pronouns
  and constructions. The current Zaqef errors make this practically significant.
- The engine's strict form rules are a corpus-tested operational subset, not
  a critical edition of every Masoretic exception. The existing 21-book audit
  records 37 readings rejected by the earlier strict engine. Separately,
  the adapter omits 168 verses before the strict solver runs. These are
  different exclusions and must not be merged into an accuracy claim.
- No new rule should be made strict merely because these counts contain no
  counterexample. The development corpus has been inspected repeatedly;
  these results are not an untouched test set.

## Complete sequence grammar

Silluq is final; at most one Etnaḥta is allowed. Every multiunit half closes
with Tipḥa and a permitted final servant run. Zarqa must reach Segol; Tevir
must reach Tipḥa. Revia needs a lower continuation before a high ending.
Pashta/Yetiv must resolve through the permitted Zaqef/Tevir/Zarqa patterns.
Small accents must reach their permitted middle continuations. These are
whole-path requirements, not just checks on neighboring pairs.

The engine tracks repeated patterns: separated repeated Tevir requires an
earlier Revia; adjacent Tevir remains a penalized exception. Repeated Pashta
needs its Revia setting; repeated Revia needs the implemented minimum spacing.
Geresh/Gershayim and Telisha Gedola cannot repeat in their respective unresolved
domains; Pazer cannot follow Telisha Gedola before that domain closes.
Segol/Shalshelet must be the first high secondary break and occur before
Etnaḥta; Shalshelet must be initial. Two Munaḥs before Zaqef need an earlier
Pashta/Yetiv setting. The exact predicates and exceptions are in the appendix.

Complete servant runs, in reading order (`M` = Munaḥ; `Tq` = Telisha Qetana;
`Q` = Qadma; `X` is specified per row):

| Ending | Permitted complete run before contextual restrictions |
| --- | --- |
| Etnaḥta | empty; M; M–M |
| Silluq | empty; Merkha |
| Tipḥa | empty; Merkha; Darga–Merkha Kefula |
| Zaqef Qatan | empty; M; M–M |
| Zaqef Gadol, Shalshelet, Yetiv | empty |
| Segol | empty; M; M–M |
| Revia | empty; M; Darga–M; M–Darga–M |
| Pashta | empty; X; M–X; Q–X; M×0…3–Tq–Q–X, where X = Mahpakh or Merkha |
| Tevir | empty; X; M–X; Q–X; M×0…1–Tq–Q–X, where X = Darga or Merkha |
| Zarqa | empty; X; M–X; Q–X; M×0…1–Tq–Q–X, where X = Munaḥ or Merkha |
| Geresh | empty; M; Q; M×0…3–Tq–Q |
| Gershayim | empty; M |
| Pazer | M×0…6 |
| Telisha Gedola | M×0…5 |
| Qarne Para | M×1…5–Yeraḥ ben Yomo; preceding Munaḥ + paseq also supplies the required opening |

These are implemented limits, not a claim that every combination is attested.
The full sequence graph and the stress rules further restrict them. In
particular, the earlier-Munaḥ constraint removes M–Merkha–Zarqa.
Munaḥ + paseq is represented ambiguously: every otherwise licensed run may
end before it. The supplied stroke alone does not decide legarmeh status.

## Grammar, ranking, and execution

The default lab predictor uses `cantillation-grammatical-prediction.js`, wrapped by
`cantillation-cascade.js`. The strict solver independently computes legal
alternatives. A label such as “predicted” is different from “required by rules.”
The older `cantillation-engine.prepare` frequency decoder and
`cantillation-reasoning.prepare` wrapper are retained but do not constitute
the default staged prediction path.

1. **Inputs and pronunciation.** Inference receives pointed text, supplied stress, syllabification, maqqef, paseq, morphology and grammatical relations. Reference accent signs and meteg are excluded. These linguistic inputs are supplied analyses, not regenerated from consonants alone. Unknown pronunciation remains unknown.
2. **Grammatical analysis.** Complete supplied attachments, construct chains, modifiers, governed complements, apposition, dependent and coordinated clauses, quotation and presentative scopes. Keep unresolved groups explicit. The request–reason–request and narrative/state templates no longer add their own discourse groupings.
3. **Main division.** Retain the existing fitted main scorer and grammatical features. Remove the manual completion formula, initial Etnaḥta-presence lock and construction-specific candidate promotions. Lexical cohesion remains a defeasible general preference; explicit legal choices remain possible.
4. **Secondary and lower accents.** Retain the existing family, group-length, form and local models. Their proposals are realized through the same complete sequence and pronunciation rules. The two-unit governed-complement mask and the short accent templates no longer alter the result.
5. **No extra grammatical accent-repair chain.** Retire the introduced-pronoun and coordination swaps, heading/name mandates, length-gated speech upgrades, contextual Pashta repairs and flat rank-inversion penalty. Preserve their underlying grammatical relationships. A model prediction is not presented as proof that these relationships determined a particular accent.
6. **Edits.** Retain the strict legal alternatives and the existing general editing cascade. Explicit choices constrain the new solve. The bounded candidate search and score margin belong to the prediction machinery, not to the inventory of traditional laws.
7. **Rendering.** Preserve positional signs, repeated positional copies and the sourced Zaqef internal-sign behavior. The unsupported internal-accent patterns discussed above remain unsupported.

The [rule review](evidence-policy.md) explains why each intervention was retained or removed. The full construction comparison records accuracy gains and losses; it is not the criterion used to decide whether to invent or restore a rule.

The learned features include completed clause/phrase boundaries, grammatical
roles, attachment depth and spans, units and syllables on either side, local
stress/length/reduced-vowel cues, maqqef, potential pausal forms, and positions
relative to proposed endings. Main scores are weighted feature sums; the
family/style/local decision trees return smoothed log scores from leaf
frequencies. Model weights are not asserted as traditional rules.
The displayed decision path can show the actual contributing features and
branches for a word. Models exclude the tested Torah book from training;
handwritten rules have still been developed using these books.

## Reproduce and keep the catalogue honest

```sh
node scripts/audit-cantillation-rule-catalogue.js
node scripts/audit-cantillation-rule-catalogue.js --check
node scripts/audit-cantillation-zaqef-swaps.js
# Optional full replay of every affected verse; can take about an hour:
node scripts/audit-cantillation-zaqef-swaps.js --replay
```

The [machine-readable inventory](rule-catalogue-audit.json) includes every
declaration's origins and hashes, and a fresh 21-book reference recount.
The generator covers all exported `RULES`, `EXTRA_RULES`, `MAIN_RULES` and
`LOCAL_RULES` collections in the engine modules. The count is a coverage check,
not a count of independently validated Masoretic laws. The preceding narrative
documents unlabelled execution behavior as well.

<!-- GENERATED RULE INVENTORY -->

## Complete exported rule inventory

There are **101 distinct exported declarations** across 25 collections. Re-exports are deduplicated by their complete declaration, not by title alone. These are not 101 independent linguistic laws: some overlap, some describe stages, and some are legacy alternatives. The status paragraph takes precedence over older declaration wording.

### 1. Close each half with Tipḥa

**Status:** Active sequence constraint, enforced by the complete sequence graph as well as the older pair-rule layer.

**Implementation/declaration:** [cantillation-rules.js](../../cantillation-rules.js) · ending

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 61–73.

```text
IF the half has one word:
  put its ending accent on that word
ELSE IF the ending is Etnaḥta:
  finish with Tipḥa + zero, one, or two Munaḥs + Etnaḥta
ELSE:
  finish with Tipḥa + optional Merkha + Silluq
ALLOW at most one Etnaḥta in the verse
```

### 2. Check both neighbours

**Status:** Active sequence constraint, enforced by the complete sequence graph as well as the older pair-rule layer.

**Implementation/declaration:** [cantillation-rules.js](../../cantillation-rules.js) · partners

**Source attribution:** [Price, The Syntax of Masoretic Accents, revised edition (2010)](https://jamesdprice.com/images/21_Syntax_of_Accents_rev._ed..pdf), pp. 28–30, 107–116.

```text
FOR each neighbouring pair A, B:
  IF A has a restricted continuation AND B is outside it:
    remove that pair
  IF A is a conjunctive AND B does not admit that conjunctive:
    remove that pair
REPEAT in both directions until no choice changes
```

### 3. Complete Zarqa with Segol

**Status:** Active sequence constraint, enforced by the complete sequence graph as well as the older pair-rule layer.

**Implementation/declaration:** [cantillation-rules.js](../../cantillation-rules.js) · zarqa

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 85–88.

```text
IF Zarqa is chosen:
  continue through Munaḥ, Munaḥ + paseq, or another Zarqa
  THEN require Segol
IF Segol is chosen:
  require that preceding Zarqa sequence
```

### 4. Continue Tevir toward Tipḥa

**Status:** Active sequence constraint, enforced by the complete sequence graph as well as the older pair-rule layer.

**Implementation/declaration:** [cantillation-rules.js](../../cantillation-rules.js) · tevir

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 89–92.

```text
IF Tevir is chosen:
  continue through its repeated lead-ins, if any
  THEN require Tipḥa before any other ending
```

### 5. Finish a Pashta sequence

**Status:** Active sequence constraint, enforced by the complete sequence graph as well as the older pair-rule layer.

**Implementation/declaration:** [cantillation-rules.js](../../cantillation-rules.js) · pashta

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 99–104.

```text
IF Pashta or Yetiv is chosen:
  allow further words, including another Pashta
  require Zaqef Qatan, Tevir, or Zarqa before
    Tipḥa, Etnaḥta, Silluq, Segol, or Zaqef Gadol
```

### 6. Place Segol before Etnaḥta

**Status:** Active sequence constraint, enforced by the complete sequence graph as well as the older pair-rule layer.

**Implementation/declaration:** [cantillation-rules.js](../../cantillation-rules.js) · segol-side

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 85–88.

```text
IF Segol or Shalshelet is chosen:
  require Etnaḥta later in the verse
  rule out an earlier Etnaḥta
IF Shalshelet is chosen:
  require the first word
```

### 7. Try the complete Torah neighbour table

**Status:** Optional corpus experiment, off in the production strict solver; absence from a sample is not a traditional prohibition.

**Implementation/declaration:** [cantillation-rules.js](../../cantillation-rules.js) · attested

**Source attribution:** [Miqra according to the Masorah](https://he.wikisource.org/wiki/משתמש:Dovi/מקרא_על_פי_המסורה), corpus experiment.

```text
FOR each neighbouring pair A, B:
  IF A → B was never observed in the training sample:
    remove that pair
TEST on a different book before treating this as predictive
```

### 8. Choose Darga or Merkha before Tevir

**Status:** Active conditional rule: wide/paseq and known zero intervals constrain the reading; the one-vowel interval retains Darga as an exception.

**Implementation/declaration:** [cantillation-rules.js](../../cantillation-rules.js) · tevir-spacing

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 108–109.

```text
GIVEN a conjunctive immediately before Tevir:
  count the eligible vowels between the stresses
  IF a paseq intervenes OR the count is at least two: require Darga
  ELSE IF the count is zero AND no initial sheva is unclassified: require Merkha
  ELSE: prefer Merkha, retaining Darga exceptions
IF stress is unknown: leave the choice open.
```

### 9. Choose Mahpakh or Merkha before Pashta

**Status:** Active shared interval calculation for scoring and explanations. The strict pashta-interval rule enforces the result when stress is known. Paseq does not count as separation.

**Implementation/declaration:** [cantillation-rules.js](../../cantillation-rules.js) · pashta-spacing

**Source attribution:** [Mordechai Breuer, טעמי המקרא בכ״א ספרים ובספרי אמ״ת, chapters II, III and VIII (user-supplied scan)](https://www.etnachta.org/research/cantillation/breuer-three.md), III.12–14, pp. 90–91, n. 11.

```text
IF a vowel nucleus or initial sheva separates the stresses: use Mahpakh
OTHERWISE: use Merkha
Ignore paseq for this choice. Tevir has a different rule.
IF stress is unknown: leave the choice open.
```

### 10. Choose Zaqef and its internal sign

**Status:** Active internal-sign rendering. The additional five-point preference between primary Qatan/Gadol forms requires zaqefForms=true and is off by default; separate strict form constraints remain on.

**Implementation/declaration:** [cantillation-rules.js](../../cantillation-rules.js) · zaqef-form

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 80–83.

```text
IF Munaḥ precedes Zaqef: use Qatan; do not add internal Munaḥ or Metiga.
ELSE IF an open noninitial full vowel has one intervening full vowel,
  or only reduced vowels before the stress:
  use internal Munaḥ + Qatan;
  BUT pataḥ, segol or qamats qatan with only reduced vowels retain gaʿya.
An earlier heavy gaʿya is not replaced by Munaḥ.
IF Pashta / Yetiv precedes: use Qatan; do not add Metiga.
ELSE IF a noninitial closed syllable has at least one intervening nucleus:
  prefer Metiga + Qatan on the earliest eligible closed syllable;
  a monosyllabic maqqef prefix, or initial shuruq before sheva,
  can attract Metiga to the first syllable.
OTHERWISE: prefer isolated Zaqef Gadol.
Do not read transmitted secondary signs or meteg as inputs.
Keep exceptions and optional gaʿya separate from strict sequence rules.
```

### 11. Choose Munaḥ or Pashta in a two-word Zaqef group

**Status:** Active five-point preference in both decoders. It does not remove legal alternatives; the learned ranking can still prefer a legal conjunctive. Breuer’s later book, reader’s glossary p. טז and IV §§7–12, supplies the conjunctive-shuruq and closed-long-vowel qualifications; see the source discussion above.

**Implementation/declaration:** [cantillation-rules.js](../../cantillation-rules.js) · zaqef-promotion

**Source attribution:** [Geoffrey Khan, The Tiberian Pronunciation Tradition of Biblical Hebrew (2020), vol. 1, citing Breuer (1971)](https://books.openbookpublishers.com/10.11647/obp.0163.pdf), pp. 458–463, 480–481; Wickes pp. 62, 75–76.

```text
GIVEN exactly two accentual units ending in Zaqef Qatan:
  count full vowels BEFORE its stressed syllable;
  do not count sheva, ḥataf, or conjunctive shuruq not followed by sheva.
  Before sheva, conjunctive shuruq counts as one short full vowel.
  Count an eligible secondary-stressed full vowel twice,
    even without a written meteg; a long vowel in a closed syllable qualifies.
    BUT count it once before a ḥataf of the same quality.
  A doubled consonant closes the preceding syllable, even across maqqef;
    do not award the open-syllable bonus there. Shuruq is not a geminate.
  IF the weighted count is at least two: prefer Pashta / Yetiv.
  ELSE: prefer Munaḥ.
Choose Pashta versus Yetiv from the preceding word’s own stress.
Do not apply to Pashta–Munaḥ–Zaqef or longer groups.
Preserve transmitted exceptions and explicit legal choices.
Unknown stress leaves the preference open.
```

### 12. Choose Pashta or Yetiv

**Status:** Active preference plus the strict pashta-form rule: a preceding conjunctive or full pre-stress vowel requires Pashta; genuinely initial stress requires Yetiv; initial reduced vowels leave a preference for Pashta.

**Implementation/declaration:** [cantillation-rules.js](../../cantillation-rules.js) · yetiv-form

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), p. 106.

```text
GIVEN a Pashta / Yetiv reading:
  IF a conjunctive immediately precedes it: prefer Pashta
  ELSE IF a vowel nucleus precedes the stress: prefer Pashta
  ELSE IF sheva or ḥataf precedes the stress: prefer Pashta
  OTHERWISE: prefer Yetiv
KEEP exceptions possible
```

### 13. Retain gaʿya where it is not replaced

**Status:** Active optional Zaqef rendering preference, not a general meteg-placement engine.

**Implementation/declaration:** [cantillation-rules.js](../../cantillation-rules.js) · zaqef-gaya

**Source attribution:** [Gesenius–Kautzsch–Cowley, Hebrew Grammar, §16d–g](https://en.wikisource.org/wiki/Gesenius%27_Hebrew_Grammar/16), §16d–g.

```text
IF a prefixed plural of bayit has pretonic qamats:
  without an external servant, prefer internal Munaḥ on that qamats;
  otherwise retain gaʿya.
ALSO allow gaʿya before ḥataf, on the preformative vowel before
  silent sheva in hayah / ḥayah, and on maqqefed va-yehi / va-yeḥi.
Otherwise an open pretonic syllable with an intervening nucleus
  can carry gaʿya; exclude ordinary gaʿya on copulative shuruq.
Gaʿya alone does not turn Zaqef Gadol into Qatan.
These are form preferences, not mandatory MAM spelling rules.
```

### 14. Choose the Geresh lead-in by distance

**Status:** Active five-point preference; both directions have transmitted exceptions.

**Implementation/declaration:** [cantillation-rules.js](../../cantillation-rules.js) · telisha-geresh-distance

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 116–117, including p. 116 n. 23.

```text
GIVEN Telisha Gedola / Pazer before the next Geresh / Gershayim:
  count the intervening accent-bearing units
  IF at most one intervenes: prefer Telisha Gedola
  OTHERWISE: prefer Pazer
KEEP both forms available: neither direction is an absolute rule.
DO NOT apply this test across another disjunctive.
```

### 15. Measure to the conjunctive replacing Geresh

**Status:** Active five-point preference measured to the last conjunctive before Pashta, Tevir or Zarqa.

**Implementation/declaration:** [cantillation-rules.js](../../cantillation-rules.js) · telisha-transformed-geresh-distance

**Source attribution:** [Mordechai Breuer, טעמי המקרא בכ״א ספרים ובספרי אמ״ת, chapters II, III and VIII (user-supplied scan)](https://www.etnachta.org/research/cantillation/breuer-three.md), II.49–50, pp. 59–61.

```text
GIVEN Telisha Gedola / Pazer followed only by conjunctives and then Pashta / Tevir / Zarqa:
  require at least one conjunctive
  count the units BEFORE the final conjunctive (run length minus one)
  IF the count is at most one: prefer Telisha Gedola
  OTHERWISE: prefer Pazer
Maqqef components remain one unit. Keep both forms possible.
```

### 16. Choose the last Zarqa servant after Qadma

**Status:** Active five-point preference with explicit exceptions and abstention for unresolved gaʿya classes.

**Implementation/declaration:** [cantillation-rules.js](../../cantillation-rules.js) · zarqa-after-qadma

**Source attribution:** [Mordechai Breuer, טעמי המקרא בכ״א ספרים ובספרי אמ״ת, chapters II, III and VIII (user-supplied scan)](https://www.etnachta.org/research/cantillation/breuer-three.md), III.16–17, pp. 92–94; VIII (gaʿya).

```text
GIVEN a run ending Qadma–(Munaḥ / Merkha)–Zarqa:
  IF paseq follows the final servant: prefer Merkha
  ELSE IF Zarqa has an open full-vowel syllable with an intervening nucleus before stress: prefer Merkha
  ELSE IF maqqef, a closed/reduced pretonic syllable, or initial copulative shuruq needs another gaʿya rule: abstain
  ELSE IF stress is known: prefer Munaḥ
Keep both choices. Never read a transmitted meteg or secondary accent.
```

### 17. Give Qarne Para its complete lead-in

**Status:** Active sequence constraint.

**Implementation/declaration:** [cantillation-engine.js](../../cantillation-engine.js) · qarne-prefix

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), p. 114.

```text
BEFORE Qarne Para:
  require Yeraḥ ben Yomo
  BEFORE that, require Munaḥ (possibly with paseq)
Qarne Para cannot stand alone.
```

### 18. Require the setting for separated repeated Tevir

**Status:** Active sequence constraint with a five-point preference against the retained adjacent-Tevir exception.

**Implementation/declaration:** [cantillation-engine.js](../../cantillation-engine.js) · repeated-tevir

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 90–91, especially p. 91 n. 4; Price p. 57 nn. 8–9.

```text
AFTER Tevir, before the same Tipḥa:
  IF another Tevir has conjunctives before it:
    require Revia before the first Tevir
    in the same larger pattern.
RESET that context at a strong ending.
KEEP adjacent Tevir–Tevir available as a transmitted exception;
  prefer the ordinary construction when both are possible.
DO NOT ban Tevir–Darga–Tevir when the earlier Revia is present.
```

### 19. Restrict repetitions and their continuations

**Status:** Active sequence constraint.

**Implementation/declaration:** [cantillation-engine.js](../../cantillation-engine.js) · smaller-order

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 78–79, 98, 111–115.

```text
BEFORE the next Pashta / Yetiv, Tevir, or Zarqa:
  separate repeated Revia by at least three words
BEFORE repeating Pashta / Yetiv:
  require Revia earlier in the same larger pattern
BEFORE the next middle ending:
  do not repeat Geresh / Gershayim
BEFORE Geresh or the next middle ending:
  do not repeat Telisha Gedola or put Pazer after it
BEFORE Revia: exclude Munaḥ–Munaḥ
BEFORE Tevir / Zarqa: allow at most four conjunctives.
```

### 20. Keep Segol at the first strong secondary break

**Status:** Active sequence constraint.

**Implementation/declaration:** [cantillation-engine.js](../../cantillation-engine.js) · segol-first

**Source attribution:** [Price, The Syntax of Masoretic Accents, revised edition (2010)](https://jamesdprice.com/images/21_Syntax_of_Accents_rev._ed..pdf), pp. 67–68.

```text
IF Segol or Shalshelet is chosen:
  exclude earlier Zaqef, Segol, or Shalshelet
  require Etnaḥta later.
IF two Munaḥs immediately precede Zaqef Qatan:
  require a preceding Pashta / Yetiv sequence.
```

### 21. Complete the smaller accent patterns

**Status:** Active sequence constraint.

**Implementation/declaration:** [cantillation-engine.js](../../cantillation-engine.js) · small-continuation

**Source attribution:** [Price, The Syntax of Masoretic Accents, revised edition (2010)](https://jamesdprice.com/images/21_Syntax_of_Accents_rev._ed..pdf), pp. 93–100.

```text
AFTER Geresh, Gershayim, Pazer, Telisha Gedola, or Qarne Para:
  require Revia, Pashta / Yetiv, Tevir, or Zarqa
  before Zaqef, Segol, Tipḥa, Etnaḥta, or Silluq.
AFTER Pazer, Telisha Gedola, or Qarne Para:
  require Geresh / Gershayim
  OR a conjunctive immediately before Pashta, Tevir, or Zarqa.
ALLOW further smaller patterns before that continuation.
```

### 22. Use the supplied paseq consistently

**Status:** Active sequence constraint.

**Implementation/declaration:** [cantillation-engine.js](../../cantillation-engine.js) · paseq-form

**Source attribution:** [Price, The Syntax of Masoretic Accents, revised edition (2010)](https://jamesdprice.com/images/21_Syntax_of_Accents_rev._ed..pdf), pp. 101–103.

```text
IF the word has a supplied paseq:
  represent Munaḥ as Munaḥ + paseq
ELSE:
  exclude the Munaḥ + paseq form
DO NOT infer from the stroke alone whether it is legarmeh.
```

### 23. Finish the sequence after Revia

**Status:** Active sequence constraint.

**Implementation/declaration:** [cantillation-engine.js](../../cantillation-engine.js) · revia-continuation

**Source attribution:** [Price, The Syntax of Masoretic Accents, revised edition (2010)](https://jamesdprice.com/images/21_Syntax_of_Accents_rev._ed..pdf), pp. 88–92.

```text
IF a word has Revia:
  require Pashta / Yetiv, Tevir, or Zarqa later
  before reaching Zaqef, Segol, Tipḥa, Etnaḥta, or Silluq
ALLOW additional Revia groups before that continuation.
```

### 24. Complete the whole conjunctive run

**Status:** Active sequence constraint.

**Implementation/declaration:** [cantillation-engine.js](../../cantillation-engine.js) · runs

**Source attribution:** [Price, The Syntax of Masoretic Accents, revised edition (2010)](https://jamesdprice.com/images/21_Syntax_of_Accents_rev._ed..pdf), pp. 28–31, 92–116.

```text
IF the following accent is Revia:
  allow Munaḥ; Darga–Munaḥ; or Munaḥ–Darga–Munaḥ
IF it is Tipḥa:
  allow Merkha; or Darga–Merkha Kefula
FOR every other ending:
  check the complete ordered run in the table
DO NOT infer that a chain is valid merely because each pair is valid.
```

### 25. Choose Geresh or Gershayim

**Status:** Active form preference, constrained further by geresh-form and short-geresh in the strict layer.

**Implementation/declaration:** [cantillation-engine.js](../../cantillation-engine.js) · geresh-form

**Source attribution:** [Price, The Syntax of Masoretic Accents, revised edition (2010)](https://jamesdprice.com/images/21_Syntax_of_Accents_rev._ed..pdf), pp. 93–96.

```text
GIVEN the Geresh / Gershayim pattern:
  IF Qadma immediately precedes: prefer Geresh
  ELSE IF a vowel nucleus follows the stress: prefer Geresh
  OTHERWISE: prefer Gershayim
IF stress is unavailable: leave the form undecided.
```

### 26. Choose the earlier Munaḥ or Qadma

**Status:** Preference in the legacy decoder; earlier-servant and earlier-zarqa are strict in the default solver. The older exception wording below is broader than current operational behavior.

**Implementation/declaration:** [cantillation-engine.js](../../cantillation-engine.js) · initial-servant

**Source attribution:** [Price, The Syntax of Masoretic Accents, revised edition (2010)](https://jamesdprice.com/images/21_Syntax_of_Accents_rev._ed..pdf), pp. 95, 113–114.

```text
GIVEN Munaḥ / Qadma before Geresh,
  or before the final conjunctive of Pashta / Tevir:
  IF Telisha Qetana precedes: use Qadma
  ELSE IF no vowel or initial sheva precedes the stress: prefer Munaḥ
  OTHERWISE: prefer Qadma
KEEP attested exceptions available.
```

### 27. Recognize words that introduce what follows

**Status:** Legacy frequency-decoder feature. The current staged predictor uses its own learned features; this is not an additional active grammatical law.

**Implementation/declaration:** [cantillation-engine.js](../../cantillation-engine.js) · word-role

**Source attribution:** [Miqra according to the Masorah](https://he.wikisource.org/wiki/משתמש:Dovi/מקרא_על_פי_המסורה), Torah; each tested book excluded from the frequency tables.

```text
READ the pointed words, without their accents.
IF the last word of a maqqef unit is a relative marker,
  conjunction, negative, or preposition:
  weight the accent by that word role’s observed patterns.
IF the next unit begins with one of those words:
  also weight the preceding accent by that following role.
DISTINGUISH אֲשֶׁר from the name אָשֵׁר.
DO NOT apply an opening word’s profile to the end of
  a larger maqqef group, such as אֲשֶׁר־עִמּוֹ.
KEEP rare readings available, including אֲשֶׁר with
  Zaqef Gadol in Leviticus 27:22.
```

### 28. Keep Munaḥ after the earlier Munaḥ before Zarqa

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · zarqa-after-munah

**Source attribution:** [Mordechai Breuer, טעמי המקרא בכ״א ספרים ובספרי אמ״ת, chapters II, III and VIII (user-supplied scan)](https://www.etnachta.org/research/cantillation/breuer-three.md), III.16–17, pp. 92–94, n. 15.

```text
IF the final two conjunctives before Zarqa start with Munaḥ:
  require Munaḥ on the second
Paseq or gaʿya does not turn this second Munaḥ into Merkha.
The Qadma setting has a separate, defeasible preference.
```

### 29. Use soft initial בגדכפת as received-pointing evidence

**Status:** Optional constraint, off by default. Soft initial pointing may already encode the target accents; results must be reported separately.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · soft-begadkefat

**Source attribution:** [Geoffrey Khan, The Tiberian Pronunciation Tradition of Biblical Hebrew (2020), vol. 1, citing Breuer (1971)](https://books.openbookpublishers.com/10.11647/obp.0163.pdf), The Tiberian Pronunciation Tradition I, §I.3.1.10, pp. 536–541.

```text
OFF by default: this evidence may encode the cantillation already.
WHEN explicitly enabled:
  IF the next accentual unit is pointed and starts with ב ג ד כ פ ת without dagesh:
    require a conjunctive on the preceding unit
  also retain ambiguous Munaḥ + paseq
Do not infer a disjunctive from a hard initial. Do not inspect a maqqef-internal boundary.
```

### 30. Geresh before Pashta, Tevir or Zarqa needs a longer ending

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · long-after-geresh

**Source attribution:** [Mordechai Breuer, Pissuḳ ṭeʿamim she-ba-Miḳra (1958)](https://tablet.otzar.org/#/book/13595/p/59/t/827980/fs/0/start/0/end/0/c), §73, pp. 53–54.

```text
IF Geresh / Gershayim immediately precedes Pashta, Tevir or Zarqa:
  require at least three vowel nuclei before the second word’s stress.
Count reduced vowels too; leave unknown stress open.
With a shorter ending, this direct sequence is unavailable.
```

### 31. Keep the Munaḥ before Gershayim short

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · gershayim-munah-short

**Source attribution:** [Mordechai Breuer, Pissuḳ ṭeʿamim she-ba-Miḳra (1958)](https://tablet.otzar.org/#/book/13595/p/59/t/827980/fs/0/start/0/end/0/c), §§57–58, p. 40.

```text
IF Munaḥ immediately precedes Gershayim:
  its word cannot have a full vowel before its stressed syllable.
Retain initial sheva / ḥataf: MAM has Munaḥ on שְׁתֵּים.
A longer lead-in needs Qadma, which takes Geresh instead.
```

### 32. Check both Munaḥs before Etnaḥta

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · etnachta-first-short

**Source attribution:** [Mordechai Breuer, Pissuḳ ṭeʿamim she-ba-Miḳra (1958)](https://tablet.otzar.org/#/book/13595/p/59/t/827980/fs/0/start/0/end/0/c), §66, pp. 46–47; conservative corpus-tested condition.

```text
IF two Munaḥs immediately precede Etnaḥta:
  the first word has no full vowel before its stressed syllable;
  the second starts on its stress, as in the existing rule.
Allow a reduced vowel on the first word.
Do not restrict it to כִּי: other words are transmitted.
```

### 33. Darga–Merkha Kefula needs a short word

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · merkha-kefula-short

**Source attribution:** [Mordechai Breuer, Pissuḳ ṭeʿamim she-ba-Miḳra (1958)](https://tablet.otzar.org/#/book/13595/p/59/t/827980/fs/0/start/0/end/0/c), §66, pp. 46, 48.

```text
IF Darga–Merkha Kefula leads into Tipḥa:
  at least one of the two servant words starts on its first full syllable.
IF both have a full vowel before the stress:
  exclude that run.
Unknown stress leaves the run available.
```

### 34. Place the three-servant Revia run after a smaller accent

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · revia-three-prefix

**Source attribution:** [Mordechai Breuer, Pissuḳ ṭeʿamim she-ba-Miḳra (1958)](https://tablet.otzar.org/#/book/13595/p/59/t/827980/fs/0/start/0/end/0/c), §65, p. 46 and note 5.

```text
IF Munaḥ–Darga–Munaḥ leads into Revia:
  require a preceding Geresh / Gershayim, Pazer,
  Telisha Gedola or Qarne Para.
Also leave Munaḥ + paseq available.
Do not require the first servant word to be short: MAM has exceptions.
```

### 35. Leave room for the Merkha–Zarqa setting

**Status:** Active strict constraint. Necessary eligibility only. Separate zarqa-after-munah and zarqa-after-qadma rules implement the two-servant conditions; the gaʿya helper explicitly abstains outside its supported classes.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · merkha-zarqa-prefix

**Source attribution:** [Mordechai Breuer, Pissuḳ ṭeʿamim she-ba-Miḳra (1958)](https://tablet.otzar.org/#/book/13595/p/59/t/827980/fs/0/start/0/end/0/c), §64, pp. 45–46; conservative meteg-eligibility condition.

```text
IF Merkha immediately precedes Zarqa:
  require a pre-stress vowel nucleus in the Zarqa word
  OR a paseq after the Merkha word.
Do not read the transmitted meteg.
Eligible words keep both Merkha and Munaḥ available.
```

### 36. Check the second Munaḥ before Etnaḥta

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · double-munah-etnachta

**Source attribution:** [Mordechai Breuer, Pissuḳ ṭeʿamim she-ba-Miḳra (1958)](https://tablet.otzar.org/#/book/13595/p/59/t/827980/fs/0/start/0/end/0/c), Pissuḳ ṭeʿamim (1958), §66, p. 47.

```text
IF two Munaḥs immediately precede Etnaḥta:
  the second word must start on its stressed syllable.
IF a vowel or initial sheva precedes that stress:
  exclude the two-Munaḥ reading.
DO NOT apply this restriction to two Munaḥs before Segol.
```

### 37. Do not close a grammatical dependency before its complement

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · bonded-pair-high

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 44, 52, 56.

```text
FOR a negative followed by its predicate,
  a verb with a one-word infinitive complement,
  or a complete two-word prepositional / object phrase:
  exclude Etnaḥta, Zaqef, Segol and Shalshelet on the first word
Require the independent grammatical attachment to agree.
```

### 38. Do not repeat a foretone inside a connected pair

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · bonded-pair-repetition

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 44, 78–79, 88, 90–91; Torah check.

```text
IF a complete grammatical pair has been identified:
  do not put a second Pashta / Yetiv, Tevir or Zarqa inside it
  when that same pattern already precedes the pair
The required first foretone remains possible.
```

### 39. A short two-word Tipḥa group takes Merkha

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · two-word-tipcha

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), p. 89.

```text
IF the entire Tipḥa group contains only two words:
  IF the ending word is short: use Merkha before it
  ELSE: retain Merkha and Tevir
Apply this to each candidate reading; never supply its earlier accents.
```

### 40. An isolated Zaqef needs an internal lead-in

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · initial-only-zaqef

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 80–83.

```text
IF Zaqef has no preceding Munaḥ or Pashta / Yetiv:
  IF its only pretonic nucleus is the initial syllable:
    use Gadol, not Qatan
Silent sheva does not create a second vowel.
Leave maqqef groups open.
```

### 41. A short two-word Zaqef group takes Munaḥ

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · two-word-zaqef

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 62, 75–76.

```text
IF a group consists of two words ending in Zaqef:
  IF the ending is an unambiguously short Hebrew word:
    use Munaḥ before it, not Pashta / Yetiv
  ELSE: retain the alternatives
Maqqef and initial reduced vowels leave this test open.
```

### 42. Short Revia patterns need room for the melody

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · near-revia-ending

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 86, 89.

```text
FOR Revia → Tevir → Tipḥa, or Revia → Zarqa → Segol:
  require a potentially long word in one of the last two positions
Use the same length test as Revia → Pashta → Zaqef.
```

### 43. An internal lead-in rules out Zaqef Gadol

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · internal-zaqef

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 80–83.

```text
IF two full vowels precede the stress after the first consonant:
  an isolated Zaqef takes Qatan, not Gadol
A vowel letter belongs to the preceding consonant.
Do not read a transmitted Munaḥ or Metiga as an input.
```

### 44. Pashta cannot touch Tevir or Zarqa

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · pashta-near-foretone

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 88, 90–91.

```text
IF Tevir or Zarqa follows Pashta / Yetiv:
  require an intervening word
Do not require two: the received text has one-word intervals.
```

### 45. Keep a complete construct pair together

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · closed-construct-high

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 44, 55; checked against the Torah.

```text
IF morphology and an independent genitive attachment agree:
  complete the complement, including its modifiers and clauses
  IF the result has only two accent-bearing words:
    exclude Etnaḥta, Zaqef, Segol and Shalshelet on the construct head
An extended complement leaves the division open.
```

### 46. Do not insert a separate pattern into a simple construct pair

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · closed-construct-small

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 44, 55; checked against the Torah.

```text
WITH the same complete construct pair:
  IF the complement is a single lexical word:
    exclude Revia, Geresh, Gershayim, Pazer, Telisha Gedola and Qarne Para on the head
Retain Tipḥa, Pashta / Yetiv, Tevir and Zarqa as possible continuations.
```

### 47. Earlier Munaḥ or Qadma

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · earlier-servant

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 109–110.

```text
BEFORE Geresh, or the final servant of Pashta / Tevir:
  IF Telisha Qetana precedes: use Qadma
  ELSE IF a vowel, sheva, or ḥataf precedes the stress: use Qadma
  ELSE: use Munaḥ
Count syllables, not the written position of a vowel letter.
```

### 48. A wide interval requires Darga

**Status:** Active strict constraint. The separate touching-tevir rule additionally requires Merkha at a known zero interval.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · wide-tevir

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 108–109.

```text
IF a conjunctive leads into Tevir:
  IF paseq intervenes OR at least two counted nuclei intervene:
    require Darga
  ELSE: retain both Darga and Merkha
The short-interval Darga exceptions remain possible.
```

### 49. Separated stresses require Mahpakh

**Status:** Active strict constraint. This checks separated stresses. The complementary pashta-interval rule also requires Merkha at touching stresses; read both declarations together.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · spaced-pashta

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), p. 107.

```text
IF a conjunctive leads into Pashta:
  IF a vowel nucleus separates the stresses:
    require Mahpakh
  ELSE: retain both Merkha and Mahpakh
The touching-stress exceptions remain possible.
```

### 50. Restrict Pashta and Yetiv by their form

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · pashta-form

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 106–107.

```text
GIVEN Pashta / Yetiv:
  IF a conjunctive precedes OR a full vowel precedes the stress:
    require Pashta
  ELSE IF an initial sheva / ḥataf precedes the stress:
    leave the form open
  ELSE: require Yetiv
```

### 51. Restrict Geresh and Gershayim by their form

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · geresh-form

**Source attribution:** [Price, The Syntax of Masoretic Accents, revised edition (2010)](https://jamesdprice.com/images/21_Syntax_of_Accents_rev._ed..pdf), pp. 93–96.

```text
GIVEN Geresh / Gershayim:
  IF Qadma precedes OR a vowel nucleus follows the stress:
    require Geresh
  ELSE: leave the form open
Final stress alone does not rule Geresh out.
```

### 52. Touching stresses require Merkha before Tevir

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · touching-tevir

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 108–109.

```text
BEFORE Tevir:
  IF no counted nucleus or paseq separates the stresses:
    require Merkha
  IF one nucleus intervenes: retain Merkha and Darga
  IF initial sheva is unclassified: leave the choice open.
```

### 53. Choose Merkha or Mahpakh by the interval

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · pashta-interval

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), p. 107.

```text
BEFORE Pashta:
  IF any nucleus or initial sheva intervenes:
    require Mahpakh
  OTHERWISE: require Merkha
Count initial sheva even if the pronunciation annotation omits it.
Paseq does not count as separation (Breuer III.14, n. 11).
```

### 54. Final-stress Geresh needs Qadma

**Status:** Active strict constraint. This retains the possibility of internal Qadma; the renderer does not generate that internal sign.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · short-geresh

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 112–113.

```text
GIVEN Geresh / Gershayim with final stress:
  IF Qadma precedes: use Geresh
  ELSE IF Munaḥ precedes, or fewer than two nuclei precede the stress:
    use Gershayim
  ELSE: retain both forms; internal Qadma may be possible
Do not consult a transmitted secondary accent.
```

### 55. Length of the word after Geresh

**Status:** Active strict constraint. The stronger long-after-geresh rule raises the threshold from two to three pre-stress nuclei.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · geresh-transformation

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 99–100.

```text
IF Geresh / Gershayim immediately precedes Pashta, Tevir, or Zarqa:
  require at least two nuclei before the ending word’s stress
OTHERWISE: the earlier sign must use a permitted conjunctive form
Longer words retain both possibilities.
```

### 56. A short isolated Zaqef takes the Gadol form

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · isolated-zaqef

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 80–83.

```text
IF Zaqef has no preceding Munaḥ or Pashta / Yetiv:
  IF its word cannot carry an internal lead-in: use Zaqef Gadol
  ELSE: leave Qatan and Gadol open
An internal lead-in needs two pretonic nuclei,
  or a pretonic vowel followed by sheva.
```

### 57. Revia close to Zaqef needs a longer word

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · near-revia

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 62, 76.

```text
FOR Revia → Pashta / Yetiv → Zaqef Qatan:
  require a potentially long word in one of the last two positions
A potentially long word has two pretonic nuclei,
  or a pretonic vowel followed by sheva
Unknown stress leaves the choice open.
```

### 58. The earlier servant before Zarqa

**Status:** Active strict constraint. Unknown pronunciation is left open where the predicate cannot be evaluated.

**Implementation/declaration:** [cantillation-linchpins.js](../../cantillation-linchpins.js) · earlier-zarqa

**Source attribution:** [Wickes, A Treatise on the Accentuation of the Twenty-One So-Called Prose Books (1887)](https://archive.org/details/treatiseonaccent00wickuoft), pp. 109–110.

```text
WITH two or more conjunctives leading into Zarqa:
  choose the earlier Munaḥ / Qadma by the same stress rule
  used before Pashta and Tevir
AFTER a preceding Zarqa: retain its repeated Munaḥ lead-in.
```

### 59. Read Tipḥa and Pashta with their neighbours

**Status:** Project interpretation retained in analysis and model features; the manual contextual/relative hierarchy repair is retired. This is not a proven universal Masoretic law.

**Implementation/declaration:** [cantillation-syntax.js](../../cantillation-syntax.js) · adjacent-servants

**Source attribution:** Project implementation / grammatical hypothesis — Working hypothesis; neighbouring accents are taken from the proposed reading, never supplied from MAM..

```text
IF Tipḥa has Merkha before it,
  OR Merkha after it before Silluq,
  OR Munaḥ after it before Etnaḥta:
  expect a separation at Tipḥa.
  Compare the stretch after the preceding Zaqef / Segol;
  if neither occurs, start at the beginning of this verse half.
  Expect the strongest phrase break within that stretch.
  EXCEPT the speech introduction:
    speech verb + speaker + addressee + לאמר.
    Tipḥa on the speaker need not mark the strongest break.
ELSE:
  Tipḥa is unmarked for connection versus separation.

IF Pashta before Zaqef has Mahpakh before or Munaḥ after:
  expect a separation at Pashta.
ELSE:
  Pashta is unmarked for connection versus separation.
COUNT the licensed Merkha alternative before Pashta,
  and Merkha Kefula before Tipḥa, as meshartim too.
LEAVE Munaḥ + paseq ambiguous when its function is unknown.

FOR prediction:
  apply a phrase-boundary preference only to a marked pattern;
  retain corpus associations for marked and unmarked signs.
FOR comparison:
  list candidate boundaries within the proposed span;
  leave their semantic ranking open when grammar cannot decide.
```

### 60. Find phrase connections before assigning accents

**Status:** Active grammatical analysis based on supplied morphology; these attachment heuristics are project hypotheses, not Breuer rules.

**Implementation/declaration:** [cantillation-syntax.js](../../cantillation-syntax.js) · syntax-before-accents

**Source attribution:** oshb — Morphology supplies word classes; the following phrase rules are this project’s hypotheses..

```text
READ morphology without accent labels or accent-derived phrase trees.
IF a construct noun has a following nominal complement:
  connect them; continue through a construct chain.
IF an adjective agrees in gender, number and definiteness:
  include it in the noun phrase.
IF a preposition or object marker precedes a noun phrase:
  include the marker in that phrase.
IF a relative marker, clause conjunction or coordinated verb begins:
  mark a candidate clause opening.
PLACE candidate boundaries at phrase ends, including one-word phrases.
PREFER connections within phrases and stronger stops at their ends.
THEN apply the permitted accent sequences and pronunciation rules.
LEAVE unrecognized relations unresolved; retain alternative readings.
```

### 61. Separate grammatical evidence from accent predictions

**Status:** Active grammatical evidence or learned prediction mechanism. See evidence-policy.md: the operative estimates are not asserted as historical accent laws.

**Implementation/declaration:** [cantillation-grammatical-prediction.js](../../cantillation-grammatical-prediction.js) · RULES[0]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
Build grammatical constituents and quotation scopes from the supplied linguistic input.
Keep documented pronunciation and accent-sequence constraints.
Prefer lexical cohesion, allowing explicit legal choices and a fallback if the preference cannot be realized.
Use the existing learned models to rank the remaining readings.
Do not turn a short construction, an observed exception, or a score improvement into an accent rule.
Model scores are predictions, not evidence that their features historically determined the accents.
```

### 62. Keep phrasing independent; compare musical realizations afterward

**Status:** Active grammatical evidence or learned prediction mechanism. See evidence-policy.md: the operative estimates are not asserted as historical accent laws.

**Implementation/declaration:** [cantillation-grammatical-prediction.js](../../cantillation-grammatical-prediction.js) · RULES[1]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
Build constituents from words and grammatical relationships first.
Attach apposition and dependent clauses to their actual heads.
Distinguish lexical connections from whole predications.

Then compare permitted musical realizations.
A final pair does not suppress an earlier secondary ending.
A deeper grammatical division remains a possible musical ending.
Lexical cohesion is a prediction preference; explicit legal readings remain available.
Closing positions can be compared using the independent phrasing or the learned local model.
```

### 63. Finish the construction before comparing breaks

**Status:** Active grammatical evidence or learned prediction mechanism. See evidence-policy.md: the operative estimates are not asserted as historical accent laws.

**Implementation/declaration:** [cantillation-grammatical-prediction.js](../../cantillation-grammatical-prediction.js) · RULES[2]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
FOR each clause attached to a word or phrase:
  include that clause in its parent construction
REPEAT until no construction grows
Compare completed constructions, including their dependents.
Keep a smaller internal division possible.
```

### 64. Compare every main-break candidate

**Status:** Active grammatical evidence or learned prediction mechanism. See evidence-policy.md: the operative estimates are not asserted as historical accent laws.

**Implementation/declaration:** [cantillation-grammatical-prediction.js](../../cantillation-grammatical-prediction.js) · RULES[3]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
FOR each possible Etnaḥta location, and for no Etnaḥta:
  compare completed clauses and grammatical connections
  account for the number of words on each side
  account for stress and possible pausal vowel forms
Rank these readings; do not forbid exceptional ones.
```

### 65. Choose secondary boundaries before their signs

**Status:** Active grammatical evidence or learned prediction mechanism. See evidence-policy.md: the operative estimates are not asserted as historical accent laws.

**Implementation/declaration:** [cantillation-grammatical-prediction.js](../../cantillation-grammatical-prediction.js) · RULES[4]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
WITH a proposed main break:
  compare possible secondary boundaries using grammar
  account for the lengths of the resulting groups
  leave Zaqef / Segol / Shalshelet interchangeable
Test whether the complete proposed plan is possible.
```

### 66. Choose an ending before filling its pattern

**Status:** Active grammatical evidence or learned prediction mechanism. See evidence-policy.md: the operative estimates are not asserted as historical accent laws.

**Implementation/declaration:** [cantillation-grammatical-prediction.js](../../cantillation-grammatical-prediction.js) · RULES[5]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
FOR a proposed strong secondary ending:
  compare Zaqef Qatan, Zaqef Gadol, Segol and Shalshelet
  retain its distance to the proposed Etnaḥta
  retain its group length and stress pattern
Choose a feasible ending, then fill the group leading into it.
A proposed Segol must receive a compatible Zarqa pattern.
```

### 67. Work back from each group ending

**Status:** Active grammatical evidence or learned prediction mechanism. See evidence-policy.md: the operative estimates are not asserted as historical accent laws.

**Implementation/declaration:** [cantillation-grammatical-prediction.js](../../cantillation-grammatical-prediction.js) · RULES[6]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
FOR each group ending at a proposed strong break:
  count words and syllables relative to THAT ending
  compare connections, smaller stops, and closing patterns
  require one complete permitted accent sequence
  apply stress-spacing and accent-form constraints.
```

### 68. Put the closing Tipḥa at the best available boundary

**Status:** Legacy reasoning wrapper, retained in the repository/rule display; it is not the current default staged decoder.

**Implementation/declaration:** [cantillation-reasoning.js](../../cantillation-reasoning.js) · closing-boundary

**Source attribution:** Project implementation / grammatical hypothesis — Working rule: syntax first; sequence constraints determine the available positions..

```text
FIND grammatical connections and completed phrases first.
CHOOSE Etnaḥta’s position or absence from syntax and verse length.
FOR each stretch ending in Etnaḥta or Silluq:
  IF it contains another word: require a Tipḥa.
  FIND the positions at which Tipḥa permits a complete reading.
  IF one position has clearly stronger grammatical evidence:
    prefer Tipḥa there.
  ELSE: leave the comparison unresolved.
Treat speech introductions as an exception to this preference.
A compulsory Tipḥa inside a phrase does not establish a real pause.
```

### 69. A weaker earlier boundary favours Tevir over Zaqef

**Status:** Legacy reasoning wrapper, retained in the repository/rule display; it is not the current default staged decoder.

**Implementation/declaration:** [cantillation-reasoning.js](../../cantillation-reasoning.js) · relative-breaks

**Source attribution:** Project implementation / grammatical hypothesis — Working hypothesis: an earlier Zaqef is at least as strong a division as the closing Tipḥa..

```text
GIVEN the proposed closing Tipḥa:
  COMPARE earlier boundaries with it using the words alone.
  IF an earlier boundary is clearly weaker:
    prefer an accent other than Etnaḥta, Zaqef, Segol or Shalshelet.
  CHECK all the permitted sequences again.
  IF another stop is necessary before Tipḥa:
    the sequence can reduce its options to Zaqef or Tevir;
    the weaker-boundary comparison then favours Tevir.
  IF a conjunctive must precede Tevir:
    use the stress-spacing rule to distinguish Darga from Merkha.
Do not apply this comparison to bare compulsory Tipḥa within a phrase.
Keep conflicting user choices and transmitted alternatives available.
```

### 70. Finish a list’s introduction before dividing the list

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-cadence-rules.js](../../cantillation-cadence-rules.js) · MAIN_RULES[0]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF a complete nominal expression introduces an appositional or explanatory list,
AND the parse groups its coordinated members together:
  try the boundary before the whole list before boundaries inside it.
Keep the existing choice of whether Etnaḥta is present.
Explicit legal accents override this preference.
```

### 71. Join a construct noun to its name before Zaqef

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-cadence-rules.js](../../cantillation-cadence-rules.js) · LOCAL_RULES[0]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF a proposed Zaqef group contains exactly two units,
AND the first is in a construct chain with a proper-name complement:
  prefer Munaḥ on the first unit.
Keep the ending, surrounding predictions and explicit choices.
Other construct chains retain their existing alternatives.
```

### 72. Keep a pronoun subject with its following predicate

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-cadence-rules.js](../../cantillation-cadence-rules.js) · MAIN_RULES[1]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF a separate pronoun is the subject of the following verb or participle,
AND both belong to the same complete clause:
  try the end of that predicate before the boundary after the pronoun.
Do not introduce Etnaḥta if the existing proposal omits it.
```

### 73. Choose the servant’s side from the closing clause

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-cadence-rules.js](../../cantillation-cadence-rules.js) · LOCAL_RULES[1]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
FOR a three-unit group A B C ending at Etnaḥta or Silluq:
  IF A is a noun subject, B its predicate complement, and C its location or complement,
    all forming one complete clause:
    prefer Tipḥa on A and a servant on B.
  ELSE IF A is a fronted argument or time expression, B a pronoun subject, and C its predicate:
    prefer Tipḥa on A and a servant on B.
Use Munaḥ before Etnaḥta, Merkha before Silluq.
These are preferences with attested exceptions, not forced readings.
```

### 74. Keep a coordinated pair together in a compact Tipḥa cadence

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-cadence-rules.js](../../cantillation-cadence-rules.js) · LOCAL_RULES[2]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF a four-unit closing group has a finite predicate A,
  coordinated words B C, and an Etnaḥta/Silluq ending D,
AND C already carries Tipḥa:
  prefer Tevir on A and Merkha on B.
Require the complete sequence to be legal.
Keep the chosen ending, surrounding predictions and explicit choices.
```

### 75. Complete a nominal predicate before a high break

**Status:** Retired from automatic prediction: synthetic discourse groupings and candidate priorities lack independent support for their exact conditions. Supplied attachments remain active.

**Implementation/declaration:** [cantillation-clause-completion.js](../../cantillation-clause-completion.js) · RULES[0]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF a one-unit nominal predicate takes a following infinitive as its subject:
  keep Etnahta, Zaqef, Segol and Shalshelet off the bare predicate.
  Smaller accents remain possible.
Do not extend this guard to a finite verb with an implicit subject.
Explicit legal choices remain available.
```

### 76. Compare complete statements with their dependent clauses

**Status:** Retired from automatic prediction: synthetic discourse groupings and candidate priorities lack independent support for their exact conditions. Supplied attachments remain active.

**Implementation/declaration:** [cantillation-clause-completion.js](../../cantillation-clause-completion.js) · RULES[1]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF a complete finite or nominal statement is followed by another independent statement:
  prefer its completed boundary over a boundary inside its attached clauses.
Use the grammatical attachment and quotation scope, not reference accents.
```

### 77. Keep a request with its intervening reason

**Status:** Retired from automatic prediction: synthetic discourse groupings and candidate priorities lack independent support for their exact conditions. Supplied attachments remain active.

**Implementation/declaration:** [cantillation-clause-completion.js](../../cantillation-clause-completion.js) · RULES[2]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF a positive volitive clause is followed by an ungoverned כי clause,
AND another volitive clause follows in the same quotation scope,
AND the middle clause is non-volitive with no further clause marker:
  group the request and reason; prefer their end over an internal main break.
Leave other כי attachments unresolved.
```

### 78. Separate continuing actions from a following state

**Status:** Retired from automatic prediction: synthetic discourse groupings and candidate priorities lack independent support for their exact conditions. Supplied attachments remain active.

**Implementation/declaration:** [cantillation-clause-completion.js](../../cantillation-clause-completion.js) · RULES[3]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF successive narrative verbs have matching person, gender and number,
AND the later verbs introduce no expressed subject,
AND a subject-first adjective or participle statement follows in the same scope:
  group the actions; prefer their completed end over an internal main break.
Do not infer this grouping before a name, location or possession statement.
Matching verbal agreement alone does not establish the grouping.
```

### 79. Keep a compact governed closing expression together

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-compact-mapping.js](../../cantillation-compact-mapping.js) · RULES[0]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
After the grammatical analysis is complete:
  if a closing expression consists of a head and a connected two-unit complement,
  prefer one musical group over a strong ending on the head.
A separate two-word clause does not trigger this preference.
Longer complements retain their internal secondary possibilities.
Explicit legal readings remain selectable.
```

### 80. Use the complete parse when choosing the main division

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-completed-prediction.js](../../cantillation-completed-prediction.js) · RULES[0]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
Build the grammatical tree before assigning accents.
Keep the model’s initial choice of whether Etnahta is present.
FOR each eligible boundary:
  find the smallest containing group split by the boundary
  L = all units before the boundary in that group
  R = all units after the boundary in that group
  O = containing clause groups that continue beyond it
  add 0.5 × log2(L × R) − 1.5 × log2(1 + O) to its score.
Include every sibling on both sides, not just the adjacent children.
Try candidates in the resulting order, subject to the sequence rules.
This is a tested prediction preference, not a grammatical prohibition.
Explicit legal choices remain available.
```

### 81. Analyze language before assigning cantillation

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-connected-prediction.js](../../cantillation-connected-prediction.js) · RULES[0]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
STAGE 1: build nested constituents from words, morphology and grammar.
A construct chain is A [B C]. A locative head takes the whole complement.
Identify closer pairs and relative levels of division.
Do not read musical signs, reference answers or a trained accent model.

STAGE 2: map that hierarchy to a permitted cantillation reading.
Compare main locations and absence; propose secondary divisions from the outside inward.
Choose required closing Tipha locations from the grammatical divisions that remain feasible.
Use the received reading only afterward to evaluate the result.
```

### 82. Keep a backward modifier inside its Tipha phrase

**Status:** Retired automatic repair. The grammatical attachment remains; no Tipha-specific high-accent mask is applied.

**Implementation/declaration:** [cantillation-contextual-mapping.js](../../cantillation-contextual-mapping.js) · RULES[0]

**Source attribution:** Project implementation / grammatical hypothesis — Grammatical prediction preference; explicit legal accent choices remain available..

```text
IF a single-unit modifier, attribute or demonstrative is attached to the preceding head,
AND the parse groups that complete head and modifier together,
AND the proposed modifier accent is Tipha:
  prefer no Zaqef, Segol or Shalshelet inside that group.
  Refill the group with lower accents, keeping the Tipha ending.
  Use the sequence and stress rules to choose the accents and servants.
Do not move a rejected high break elsewhere inside the same group.
Keep Etnahta, the other half, and explicit choices.
An independent word or a continuing modifier phrase does not establish this pattern.
```

### 83. Keep a containing phrase above its inner Pashta

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-contextual-mapping.js](../../cantillation-contextual-mapping.js) · RULES[1]

**Source attribution:** Project implementation / grammatical hypothesis — Experimental grammatical mapping rule; neighbours come from each candidate reading..

```text
IF a marked Pashta is immediately followed by a bare Pashta,
AND the later word closes a grammatical group containing the earlier word:
  do not treat the two Pashtas as equally strong.
  Try a strong ending on the later word;
  OR give the later Pashta a following Munah.
  IF the earlier word does not close a complete finite clause:
    also try connecting the inner words
    or reconsidering the earlier Pashta’s servant.
Keep the grammatical connections and explicit choices.
First retain the existing strong boundaries where possible,
  then compare the completed readings.
Search each Etnahta half separately; keep other accents hidden.
A bare Tipha or Pashta is unmarked, not automatically conjunctive.
```

### 84. Keep an introduced pronoun with its predicate

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-current-prediction.js](../../cantillation-current-prediction.js) · RULES[0]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
Complete the linguistic scope first.
For a free introduction followed by a separate pronoun subject and predicate,
if the existing three-unit pattern is conjunctive + Tevir + Tipha,
try Tevir + conjunctive + Tipha, respecting that scope.
Keep every other predicted sign and all explicit choices.
Longer groups, suffixed forms and other patterns remain open.
```

### 85. Realize completed scopes as divisions

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-discourse-prediction.js](../../cantillation-discourse-prediction.js) · RULES[0]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
Establish quoted content, time frames and multiword heads before mapping.
At a speech introduction or time frame, compare the remaining musical span.
Use a secondary division when at least three units remain; otherwise a smaller division.
Preserve a completed quoted clause before the next narrative action.
Keep a completed modifier head separate from its following modifier.
Select actual signs using the permitted sequences and learned preferences.
Keep the main choice and all explicit user choices; report any infeasible preference.
```

### 86. Complete a manner/action construction before the main division

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-final-prediction.js](../../cantillation-final-prediction.js) · RULES[0]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
A same-subject manner verb takes the whole following action.
Prefer a completed main division over a division after that introductory verb.
Keep smaller internal divisions and explicit legal choices available.
```

### 87. Give a long closing quotation its own cadence

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-final-prediction.js](../../cantillation-final-prediction.js) · RULES[1]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF the parsed speech introduction is followed by two accent-bearing units before Silluq,
AND the first meets the existing long-word test:
  prefer a high ending on the introduction, followed by Tipha–Silluq.
Long means at least three full vowels through the stress,
  or the existing two-vowel reduced-syllable conditions.
Recognize the speech boundary from its meaning and grammatical scope.
Keep the selected Etnahta, its other half, and explicit legal choices.
This is a prediction preference; it does not raise every reporting verb.
```

### 88. Keep selected divisions disjunctive

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-final-prediction.js](../../cantillation-final-prediction.js) · RULES[4]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF a boundary is selected as the main division:
  exclude conjunctives before choosing its accent.
Carry that restriction through every alternative plan and edit.
A user connection can revise an automatic boundary proposal.
Never label an unconstrained alternative as the selected main division.
```

### 89. Separate a nominal heading from the following name

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-final-prediction.js](../../cantillation-final-prediction.js) · RULES[5]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF a complete nominal clause has a preposed prepositional predicate
  containing a noun, followed by a complete multiunit proper-name subject:
  select a division after the heading.
IF the name occupies two accent-bearing units and ends the verse or half:
  IF two or more full vowels precede the last unit’s stress:
    prefer a separate closing cadence for the name.
    Keep Etnahta if already selected; otherwise prefer a secondary ending on the heading.
  OTHERWISE: leave the disjunctive form to the existing sequence rules.
The cadence choice is a prediction preference, not a universal prohibition.
```

### 90. Realize completed scopes as divisions

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-final-prediction.js](../../cantillation-final-prediction.js) · RULES[6]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
Establish quoted content, time frames and multiword heads before mapping.
Preserve existing disjunctives; repair a missed division.
At a speech introduction or time frame, compare the remaining musical span.
Use a secondary division when at least three units remain; otherwise a smaller division.
Preserve a completed quoted clause before the next narrative action.
Keep a completed modifier head separate from its following modifier.
Select actual signs using the permitted sequences and learned preferences.
Keep the main choice and all explicit user choices; report any infeasible preference.
```

### 91. Put the servant on the closer connection

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-local-mapping.js](../../cantillation-local-mapping.js) · RULES[3]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
FOR three successive units A, B, C ending with a dividing accent:
  IF the parse explicitly binds A–B or B–C more closely
    by a lexical connection or apposition:
    prefer a servant on that connection and a division on the other.
  Test the whole accent sequence and the syllable rules.
  Keep C, the surrounding groups, and explicit legal choices.
A bare Tipha or Pashta is still different from a servant.
Preserve legal strings of servants and ambiguous groupings.
This mapping preference leaves attested exceptions selectable.
```

### 92. Keep a compact coordinated argument together before Revia

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-local-mapping.js](../../cantillation-local-mapping.js) · RULES[4]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF two adjacent coordinated members fill one argument,
AND they follow a predicate in the same clause,
AND the proposed ending is conjunctive–Geresh/Gershayim–Revia:
  try a division after the predicate and a conjunctive between the members.
Keep the chosen main and secondary endings and explicit accent choices.
This is a grammatical preference; Geresh–Revia remains legal.
```

### 93. Map lower divisions to completed grammatical groups

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-local-mapping.js](../../cantillation-local-mapping.js) · RULES[5]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
Keep the independently established grammatical hierarchy.
Within a Tipha domain, prefer the end of a complete verbal predicate and its arguments over an internal division.
A copular clause awaiting its predicative complement is still incomplete.
Complete a predicate and complement before a separate final time adjunct.
Keep the selected main and secondary divisions and explicit user choices.
```

### 94. Keep phrase endings above their internal breaks

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-local-mapping.js](../../cantillation-local-mapping.js) · RULES[6]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
FOR every completed grammatical constituent inside each Etnahta half:
  compare its ending with every break inside it.
  A bare Tipha or Pashta has an unresolved strength;
    its adjacent servants determine whether it is marked.
  IF an internal break is definitely stronger than the ending:
    try each compatible stronger ending;
    also try weaker internal accents while keeping the ending.
  Refill the whole half using the sequence and stress rules.
  Prefer fewer within-clause hierarchy inversions.
  Across an embedded clause, subtract one point per inverted rank step
    from the existing prediction score; do not impose a new prohibition.
  Recheck all constituents; repeat while the comparison improves.
Keep explicit choices and the independent other half.
Etnahta separates the searches; its position comes from the main-break stage.
Unfinished heads and tentative local spans do not establish a closure.
This is a mapping preference, not a ban on transmitted exceptions.
Report unresolved comparisons, including a search limit, openly.
```

### 95. Keep a secondary predicate with its continuation

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-local-mapping.js](../../cantillation-local-mapping.js) · RULES[9]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF a participial predicative adjunct introduces an infinitive:
  attach the infinitive to that predicate, including its dependent clauses.
  Prefer a main break before this new constituent over a break after its bare head.
Keep explicit legal choices available.
```

### 96. Complete a content clause before its coordinated continuation

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-local-mapping.js](../../cantillation-local-mapping.js) · RULES[10]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF a predicate takes a content clause as its object,
AND that content has a following coordinated clause:
  try the boundary between the completed content clauses
  before the boundary between the matrix predicate and its object.
Other candidate divisions keep their order.
This is a prediction preference, not a ban on legal readings.
```

### 97. Prefer complete constructions over their internal modifiers

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-local-mapping.js](../../cantillation-local-mapping.js) · RULES[11]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF a complete finite clause, including its attached modifiers and quoted content,
  is followed by another independent finite clause:
  try the end of the containing clause before a break inside an attributive clause.
A nominal explanation or a resumed topic is a different construction.
IF a summary is followed by coordinated elaboration:
  try the summary/list division before a division inside the elaboration.
These are grammatical prediction preferences, not bans on legal readings.
Explicit accent choices remain constraints; refill the verse after each edit.
```

### 98. Finish quoted speech before the next assertion

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-local-mapping.js](../../cantillation-local-mapping.js) · RULES[12]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF a complete quotation is followed by an independent finite clause:
  try the end of the quotation before any division inside its content.
Keep the speech introduction eligible.
Keep explicit user choices and legal alternatives available.
```

### 99. Keep a coordinated relative description together

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-local-mapping.js](../../cantillation-local-mapping.js) · RULES[13]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
IF an independent clause has a complete predicate
  (a finite verb, or a nominal subject and predicate),
AND its final constituent has an explicit relative clause
  with coordinated parts, extending to the end of the verse or quotation,
AND the main clause starts that verse or quotation:
  try the boundary before the whole description
  before any division inside it.
Do not apply this to hanging subjects, resumed clauses,
  incomplete predicates, or unmarked participial modifiers.
This is a prediction preference; explicit choices remain available.
```

### 100. Complete a bare manner introduction before the main division

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-local-mapping.js](../../cantillation-local-mapping.js) · RULES[14]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
A bare manner verb introduces the following action.
Prefer a completed main division over a division after that bare verb.
A complete multiword clause remains eligible.
Keep smaller internal divisions and explicit legal choices available.
```

### 101. Realize a complete introduction before dividing its content

**Status:** Historical implementation, outside the current grammatical predictor. Its declaration is retained for reproducibility and does not assert an active or independently validated rule.

**Implementation/declaration:** [cantillation-presentative-prediction.js](../../cantillation-presentative-prediction.js) · RULES[0]

**Source attribution:** Project implementation / grammatical hypothesis.

```text
First establish the complete introduced expression from grammar.
Within an already predicted musical group, compare its existing smaller division.
If a conjunctive binds the introduction to a deeper internal division,
try the same division at the introduction and refill the intervening conjunctives.
Preserve higher endings, explicit choices and all sequence constraints.
```
