Papers › CLASE: A Hybrid Method for Chinese Legalese Stylistic Evaluation

CLASE: A Hybrid Method for Chinese Legalese Stylistic Evaluation

13 Feb 2026arXiv:2602.12639added by Syntology

Yiran Rex Ma, Yuxiao Ye, Huiyuan Xie

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Legal text generated by large language models (LLMs) can usually achieve reasonable factual accuracy, but it frequently fails to adhere to the specialised stylistic norms and linguistic conventions of legal writing. In order to improve stylistic quality, a crucial first step is to establish a reliable evaluation method. However, having legal experts manually develop such a metric is impractical, as the implicit stylistic requirements in legal writing practice are difficult to formalise into explicit rubrics. Meanwhile, existing automatic evaluation methods also fall short: reference-based metrics conflate semantic accuracy with stylistic fidelity, and LLM-as-a-judge evaluations suffer from opacity and inconsistency. To address these challenges, we introduce CLASE (Chinese LegAlese Stylistic Evaluation), a hybrid evaluation method that focuses on the stylistic performance of legal text. The method incorporates a hybrid scoring mechanism that combines 1) linguistic feature-based scores and 2) experience-guided LLM-as-a-judge scores. Both the feature coefficients and the LLM scoring experiences are learned from contrastive pairs of authentic legal documents and their LLM-restored counterparts. This hybrid design captures both surface-level features and implicit stylistic norms in a transparent, reference-free manner. Experiments on 200 Chinese legal documents show that CLASE achieves substantially higher alignment with human judgments than traditional metrics and pure LLM-as-a-judge methods. Beyond improved alignment, CLASE provides interpretable score breakdowns and suggestions for improvements, offering a scalable and practical solution for professional stylistic evaluation in legal text generation (Code and data for CLASE is available at: https://github.com/rexera/CLASE).

PaperPDFCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 20 code samples harvested from 1 repository linked to this paper: 17 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 5 honoured, 0 violated, 0 with no contract checked; 12 where Syntology's instrument failed) · 3 unverified. Where Syntology's instrument failed: 12 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 20 samples from 1 repository, 17 ran (5 with no instrument failure; 12 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-22 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

rexera/CLASE found in paper text by SyntologySyntology: 20 samples, 17 ran (12 instrument-failed) · 3 unverified report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

20 samples harvested: 17 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 5 honoured, 0 violated, 0 with no contract checked; 12 where Syntology's instrument failed) · 3 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

5ran · honoured contract
12ran · our draft was wrong
3unverified

Licence: 0 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from rexera/CLASE. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

rexera/CLASE found in paper text by Syntology 20 samples, 17 ran (12 instrument-failed) · 3 unverified
calculate_character_percentage linguistic_features/feature_extractor.py ran · honoured contract MIT (permissive) · 4242172a7e5c5abe · report fixture: signature text:str/0/str, common_chars:set/0/? · returned float · level recorded 2026-09-22
calculate_second_most_common_percentage linguistic_features/feature_extractor.py ran · honoured contract MIT (permissive) · e5c01f01bf81d45d · report fixture: signature text:str/0/str, character_set:set/0/? · returned float · level recorded 2026-09-22
calculate_stroke_ratios linguistic_features/feature_extractor.py ran · honoured contract MIT (permissive) · b811ef24a1c8e9ca · report fixture: signature text:str/0/str, stroke_data:dict/0/? · returned tuple · level recorded 2026-09-22
count_words in 28 papers linguistic_features/feature_extractor.py ran · honoured contract fingerprinted MIT (permissive) · 9c81670a59d88906 · report fixture: signature text:str/0/str · returned int · level recorded 2026-09-22
feature_19_to_24 linguistic_features/feature_extractor.py ran · our draft was wrong fingerprinted MIT (permissive) · a3b69be84b392c29 · report fixture: signature text:str/0/str · returned list · level recorded 2026-09-22
feature_1_to_3 linguistic_features/feature_extractor.py ran · our draft was wrong MIT (permissive) · 9a3b058b63e215e3 · report fixture: signature text:str/0/str, json_path:str/0/str · returned list · level recorded 2026-09-22
feature_25_to_53 linguistic_features/feature_extractor.py ran · our draft was wrong fingerprinted MIT (permissive) · 406646e492867d9a · report fixture: signature text:str/0/str · returned list · level recorded 2026-09-22
feature_4_to_7 linguistic_features/feature_extractor.py ran · our draft was wrong MIT (permissive) · 6a44075205b52eb2 · report fixture: signature text:str/0/str, stroke_file:str/0/str · returned list · level recorded 2026-09-22
feature_60_to_65 linguistic_features/feature_extractor.py ran · our draft was wrong fingerprinted MIT (permissive) · 66145e6bdf610ace · report fixture: signature text:str/0/str · returned list · level recorded 2026-09-22
feature_66_to_78 linguistic_features/feature_extractor.py ran · our draft was wrong fingerprinted MIT (permissive) · e0852090dc7875ca · report fixture: signature text:str/0/str · returned list · level recorded 2026-09-22
feature_8_to_18 linguistic_features/feature_extractor.py ran · our draft was wrong fingerprinted MIT (permissive) · a85f527c01058502 · report fixture: signature text:str/0/str · returned list · level recorded 2026-09-22
find_idioms_in_text linguistic_features/feature_extractor.py ran · honoured contract MIT (permissive) · 15a2af46ac5adcac · report fixture: signature text:str/0/str, idioms:set/0/? · returned list · level recorded 2026-09-22
get_word_pos linguistic_features/feature_extractor.py ran · our draft was wrong MIT (permissive) · 3a82c645ff23711b · report fixture: signature text:str/0/str · returned list · level recorded 2026-09-22
load_common_characters linguistic_features/feature_extractor.py ran · our draft was wrong MIT (permissive) · dc866e2d5707488d · report fixture: signature json_path:str/0/str, start_idx:int/0/int, end_idx:int/0/int · returned set · level recorded 2026-09-22
load_stroke_data linguistic_features/feature_extractor.py ran · our draft was wrong MIT (permissive) · c8bb249e65f69d67 · report fixture: signature stroke_file:str/0/str · returned dict · level recorded 2026-09-22
split_chinese_sentences linguistic_features/feature_extractor.py ran · our draft was wrong fingerprinted MIT (permissive) · 20cb2908e81784fb · report fixture: signature text:str/0/str · returned list · level recorded 2026-09-22
split_into_sentences in 18 papers linguistic_features/feature_extractor.py ran · our draft was wrong fingerprinted MIT (permissive) · 410516a5a8ae2900 · report fixture: signature text:str/0/str · returned list · level recorded 2026-09-22
extract_all_features linguistic_features/feature_extractor.py unverified MIT (permissive) · 322b83ed256e96df · report
feature_54_to_59 linguistic_features/feature_extractor.py unverified MIT (permissive) · 9cb8f0cd9e686419 · report
load_idioms linguistic_features/feature_extractor.py unverified MIT (permissive) · 37b7962ab95bea4f · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for CLASE (graph method: CLASE). 20 bricks; individually on a fixture: 17 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 5 honoured, 0 violated, 0 with no contract checked; 12 where Syntology's instrument failed) · 3 unverified. The assembly has not been run end-to-end.

  1. extract_all_features entry · level 0 · unverified · 322b83ed256e96df
  2. feature_19_to_24 helper · level 1 · ran · our draft was wrong · a3b69be84b392c29
  3. feature_1_to_3 helper · level 1 · ran · our draft was wrong · 9a3b058b63e215e3
  4. feature_25_to_53 helper · level 1 · ran · our draft was wrong · 406646e492867d9a
  5. feature_4_to_7 helper · level 1 · ran · our draft was wrong · 6a44075205b52eb2
  6. feature_54_to_59 helper · level 0 · unverified · 9cb8f0cd9e686419
  7. feature_60_to_65 helper · level 1 · ran · our draft was wrong · 66145e6bdf610ace
  8. feature_66_to_78 helper · level 1 · ran · our draft was wrong · e0852090dc7875ca
  9. feature_8_to_18 helper · level 1 · ran · our draft was wrong · a85f527c01058502
  10. split_chinese_sentences helper · level 1 · ran · our draft was wrong · 20cb2908e81784fb
  11. calculate_character_percentage helper · level 1 · ran · honoured contract · 4242172a7e5c5abe
  12. calculate_second_most_common_percentage helper · level 1 · ran · honoured contract · e5c01f01bf81d45d
  13. load_common_characters helper · level 1 · ran · our draft was wrong · dc866e2d5707488d
  14. get_word_pos helper · level 1 · ran · our draft was wrong · 3a82c645ff23711b
  15. split_into_sentences helper · level 1 · ran · our draft was wrong · 410516a5a8ae2900
  16. calculate_stroke_ratios helper · level 1 · ran · honoured contract · b811ef24a1c8e9ca
  17. load_stroke_data helper · level 1 · ran · our draft was wrong · c8bb249e65f69d67
  18. count_words helper · level 1 · ran · honoured contract · 9c81670a59d88906
  19. find_idioms_in_text helper · level 1 · ran · honoured contract · 15a2af46ac5adcac
  20. load_idioms helper · level 0 · unverified · 37b7962ab95bea4f

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2602.12639") returns these assemblies with each brick's role and wiring (how to connect).

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2602.12639, was issued in February 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections