Skip to content

feat: add terminology toggle for fakie/forward trick names - #52

Merged
nazroll merged 4 commits into
mainfrom
feat/terminology-toggle-37
Jul 8, 2026
Merged

feat: add terminology toggle for fakie/forward trick names#52
nazroll merged 4 commits into
mainfrom
feat/terminology-toggle-37

Conversation

@nazroll

@nazroll nazroll commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • New terminology keyword on generate_combo (and Trick.to_dict): "classic" (default, unchanged output) or "fakie" (Front XForward X, Back XFakie X), per the user feedback in user feedback #37
  • Names without a direction prefix (front-entry turns like Parallel Turn (Open)) are unchanged in both styles
  • Only the name field changes — id and all entry/exit state values keep the canonical front/back vocabulary, so matching logic and downstream state consumers are unaffected
  • Unknown styles raise ValueError
  • Docs updated (README + docs/usage.md); 4 new tests

Fully backward compatible — default output is byte-identical to v0.5.0.

Note: merge after #50/#51; the import-line change is textually identical to #51's so the merge resolves cleanly.

Closes #37

Test plan

  • ruff check ., black --check ., mypy . (strict), pytest — all green locally (41 passed)
  • Exercised end-to-end: generate_combo(4, terminology='fakie')Fakie Fast Slide, Fakie Toe Press, Fakie 180, Forward Heel Press

🤖 Generated with Claude Code

nazroll and others added 4 commits July 8, 2026 11:26
Adds a terminology parameter to generate_combo (and Trick.to_dict):
'classic' (default) keeps canonical Front/Back names; 'fakie' renders
Front X -> Forward X and Back X -> Fakie X, per skater feedback.
Only the name field changes; ids and state values stay canonical.

Closes #37

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…wn styles

Review finding (agy counter-review): generate_combo raised ValueError for
unknown terminology but Trick.to_dict silently fell back to classic names.
Sharing the check in _display_name makes both paths fail loudly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Data fixes (moves.json, data version 1.1.0 -> 1.2.0):
- Every name now follows 'Front/Back [Open|Closed] Move' (Eccentric
  Inline convention); turns gain their Front prefix, '(Stance)' suffix
  form is gone
- Simplified ids: predator_f_o -> predator_f, parallel_turn_* ->
  parallel_*, tree_turn_* -> tree_*
- Toe/heel rolls and fast/back slides corrected to feet: 1 with
  matching exit.feet: 1

Tests and docs updated to the new names/ids; with all names prefixed,
the fakie terminology style now maps every move.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@nazroll
nazroll merged commit 1ad6a36 into main Jul 8, 2026
7 checks passed
@nazroll
nazroll deleted the feat/terminology-toggle-37 branch July 8, 2026 12:34
@nazroll nazroll mentioned this pull request Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

user feedback

1 participant