Pular para o conteúdo

Counts and Reports

Este conteúdo não está disponível em sua língua ainda.

Afterburner has four cheapest routes for “at the end” when each event costs one and movement costs nothing. Two of them share the same last five events. One occurrence gives that window half a count, even though it crosses a word boundary and a cut in the analysis.

The window begins on the last letter of “the” and finishes at the end of “end”. The price of the final uses only the last three events shown here. A report counts n-grams: consecutive runs of one through five events. Counting continues across factors and word boundaries within a sequence and stops at the sequence boundary. Five events let a metric look farther than a pair or triple: quint.ends.sfdk.freq asks what share of five-event windows use the same finger on different keys at the first and fifth positions. The count stage reuses the solved paths and their bounded prefixes and suffixes. This supports wider measurements from the same solved paths while keeping the pricing history at two previous events.

The five-event count spans E, Space, Skip Magic, N, and D. The cut follows Space. The price at D reads the last three events: Skip Magic, N, and D.
Types e end

To count a window inside a factor, Keymaxx counts how many paths reach the start of that run and how many can finish from its end. In the shared graph for Afterburner’s “brrr”, the window leaves “br” and reaches the terminal. Of the four tied paths, exactly one contains that window. One occurrence of “brrr” therefore contributes one quarter. For an interior window, multiply the number of arrivals by the number of completions, divide by the number of tied paths, then multiply by the corpus occurrence weight. Repeated runs of the same events add to the same count.

A window spanning factors combines the end of the first factor, the beginning of the last, and any short full streams in between. WordChains tells the analyzer how often those pieces occur together. The first five-event window above requires only the last in “at the end”. Two of the four minimum paths use it, so one occurrence contributes 2/4 × 1 = ½.

Two occurrences of Afterburner’s “at the end” show how the arithmetic works. At one unit per event and zero movement costs, the “t” in “the” and “e” in “end” can each use an ordinary letter key or . The choices are independent. The five-event window starts on the alternate press that writes “t” and ends on the alternate press that writes “e”.

Afterburner: the chosen five-event window is Skip Magic, H, E, Space, Skip Magic, with the cut after the.
Types the e

This window needs both alternate presses, so one of the four routes supplies it. Two source occurrences give 1/4 × 2 = ½.

A shorter tied route can supply a window the longer route cannot. For Magic Sturdy’s “no, but why?”, the press costs four, every other event costs one, and movement costs zero. The single “ but” output costs the same as . The two routes tie. The five-event window below occurs on the short route.

The Magic Sturdy window is O, Comma, Magic for space and but, Space, W.
Types o, but w

The literal route has more intervening events between the same endpoints. The exact count of this window is one half. The denominator still includes the complete tied set.

Afterburner’s five-event window with an alternate press at both ends also appears in “cut the end”. It still has one quarter of that sequence’s tied paths. In a corpus with two copies of “at the end” and one of “cut the end”, the same window receives ½ from the first sequence and ¼ from the second.

at the end2 × ¼ = ½cut the end1 × ¼ = ¼Same window½ + ¼ = ¾

Keymaxx groups contributions by window width and ordered physical event IDs, then reduces each group to one fraction. A small event catalog lets it pack five IDs and the width into one machine word. Larger catalogs use wider keys. Sorting brings a window’s contributions together so one reducer can sum the whole group.

The reducer combines whole portions and fractional remainders separately. A raw sum of numerators can exceed the integer range even when the reduced answer fits; keeping the whole part separate avoids that overflow. A reduced count or an accepting-path count can still exceed its exact representation. The analyzer reports that limit before publishing a weighted result.

A report keeps the exact weighted counts for widths one through five, the corpus’s character total, and its weighted minimum cost. A report can also retain the factor graphs and the positions that connect them, so a reader can inspect the routes behind a count. Each source occurrence divides its weight equally among the distinct minimum-cost aligned streams. Exact fractions let the analyzer sum those contributions in any order. The character total describes the text that was analyzed; an annotated corpus can separately report counts for its original written form. For the one-word Opal corpus “key”, a model that prices each event at one and adds no movement cost has precisely the two three-press routes from the first page.

Metric queries read the weighted event windows from those tables. A query can filter for a pattern of fingers or movements, calculate its frequency, and leave the analysis unchanged. In Opal’s ordinary route, all three presses are on the right hand. In the Magic route, the middle press is on the left, so the hand changes twice. Each route counts one half. The report therefore gives one weighted hand change over the two adjacent-pair positions, a frequency of 50 percent. A frequency has that denominator because the query started with adjacent pairs; starting with a five-event table would keep the five-event denominator.

On Semo-e (세모이), two chords write “강가”. They form one bigram, and the report keeps the individual keys belonging to each chord.

Semo-e: K, F, and A together write 강; K and F together write 가. The two chords are two events.
Types 강가

The bi.kp projection pairs each of the first chord’s three keys with each of the second’s two. If this window has weight one, it contributes one to the event-window denominator. Each of its six physical pairs has weight one, so this row contributes six to the denominator for mean pair distance. Both queries use the same report.

Opal’s Magic route shows how Words links the half-weight right-to-left pair back to “key”: the report’s factor graphs locate the pair, and the matching corpus supplies the text. On QWERTY, “walking home” and “talking home” share the written tail after their first letter. The pair occurs in both. and occur once each, in different source contexts. Identical spelling storage does not collapse the original occurrences.

The graph can also assign a silent event to a word. In the QWERTY hold example, acquiring is grouped with the press that writes “A”. In Word Detail, the same word can appear in several distinct typing graphs; equivalent graphs are grouped and each occurrence contributes its corpus count once, even when it has several tied paths.

Trace answers a different question: which actions can type this particular example under the current layout and cost model? It takes the example text, such as “key”, and runs a short analysis with the selected layout and cost model. For an annotated example it uses the layout’s declared input form. Its graph shows the resulting physical paths and aligns them to the output. Selecting a sentence from a corpus chooses the text for Trace; the retained corpus-wide report remains the source for word and pattern attribution.

Large corpora can also split into shards of independent sequences. If two shards each contain one occurrence of Opal’s “key”, each can contribute one half to the Magic route; reducing the two contributions gives one. Each shard contributes the counts for its own complete sequences. Reduction can add the fractions in the order the shards finish; each retained occurrence still points to its original shard and position. Dividing the corpus this way changes the work, while combining the same source occurrences gives the same kept paths and counts.

The Opal example has one prepared corpus. Binding another layout reuses those spelling, sequence, and source tables but needs the new layout’s legal actions. Changing just the prices can reuse the legal action relation. The priced search then keeps the recent physical events needed by the new model and selects its cheapest paths.

Reuse across layoutsSame corpus and layoutSame corpus, layout, and pricesMetric filter reads these countsPrepared corpusText and source countsCandidate graphBind the layoutMinimum pathsPrice the candidatesReportCounts and optional graphs

A metric filter reads the report after the paths and their weights are determined. Word attribution needs the optional retained graphs and the matching corpus. Trace takes a fresh passage through the same analysis steps. Those are different uses of the underlying representations.

Opal’s two half-weight paths carry the same written text into the report and preserve the different motions that produced it. That is the purpose of sharing work at each stage: reuse what paths have in common and keep the distinctions that affect the answer.