Accessibility settings

Published on in Vol 10 (2026)

Preprints (earlier versions) of this paper are available at https://preprints.jmir.org/preprint/97408, first published .
Patient discusses eye exam results with optometrist on tablet in clinic

Prompting Strategies for Readability Alignment Between User-Generated Ophthalmology Questions and Large Language Model Answers: Comparative Evaluation Study

Prompting Strategies for Readability Alignment Between User-Generated Ophthalmology Questions and Large Language Model Answers: Comparative Evaluation Study

1Faculdade de Medicina, Universidade de São Paulo, São Paulo, Brazil

2Clínica Bulla, Rua São Joaquim 611, Suite 1203, São Leopoldo, Brazil

3Faculdade de Medicina, Universidade Federal do Rio Grande do Sul, Porto Alegre, Rio Grande do Sul, Brazil

4Faculdade de Medicina, Universidade Federal do Pará, Belém, Pará, Brazil

Corresponding Author:

Mário César Bulla, MD


Background: Accessible health communication is essential for effective patient education, yet most medical information remains written at a level above the general population’s recommended reading level. Large language models (LLMs) can simplify complex medical information, but it remains unclear whether responses can be automatically adapted to match the linguistic complexity of user-generated questions seeking medical information.

Objective: To evaluate whether the LLM-generated responses to user-generated ophthalmology questions align with their readability and to compare different prompting strategies for readability control across multiple LLM architectures, including their impact on response quality as well as computational cost and efficiency.

Methods: A total of 400 user-generated ophthalmology questions collected from public YouTube comments were categorized into 3 readability tiers based on the Flesch Reading Ease Score. A controlled comparative evaluation of responses generated by 4 LLMs (GPT 5.2, Gemini 3, Claude Opus 4.5, and OSS-20b) was performed under 4 prompting conditions: Baseline (no readability control), Formula-Informed Readability Prompt, Semantic Readability Inference, and External Calculator–Guided Prompt. Agreement between question and response readability was assessed using quadratic-weighted Cohen kappa. Response quality was evaluated using BERTScore and LLM-as-a-judge assessments. Computational efficiency was evaluated through token usage, estimated cost per response, and latency.

Results: The external calculator–guided strategy produced the strongest alignment in readability across models, achieving the highest agreement (Gemini 3: κ=0.94; GPT 5.2: κ=0.90), while maintaining favorable computational efficiency. Formula-informed prompting showed intermediate performance, whereas semantic inference demonstrated poor agreement due to unreliable readability estimation. High-performing models (GPT 5.2 and Gemini 3) maintained very high factual accuracy (>98%) across strategies, indicating that readability control did not substantially degrade correctness. In contrast, the open-source OSS-20b model showed lower accuracy (83.75%‐90%) and greater sensitivity to readability constraints. Semantic similarity remained high across models (Bidirectional Encoder Representations from Transformers Score [BERTScore] F1>0.87). Longer questions were associated with slightly lower accuracy, particularly in lower-performing configurations.

Conclusions: Aligning LLM responses to the readability of user-generated questions is feasible and can be reliably achieved using externally guided readability signals. Hybrid pipelines that combine traditional readability metrics with LLM-generated content may therefore represent a practical approach for scalable, readability-adaptive health communication systems.

JMIR Form Res 2026;10:e97408

doi:10.2196/97408

Keywords



Accessible health communication is essential for patient education, yet much of the health information available to patients remains above the recommended reading level [1]. As patients increasingly use digital resources and large language models (LLMs) to obtain information about diseases, treatments, and postoperative care, the usefulness of these tools depends on whether their responses are understandable to the intended audience [2-9]. Across medical specialties, unconstrained LLM responses frequently exceed the reading levels recommended by organizations such as the American Medical Association and the National Institutes of Health [10,11]. Although plain-language or grade-specific prompts can improve readability, these improvements may be inconsistent or come at the expense of completeness and accuracy [9,12-21].

Patients with retinal disease, glaucoma, or uveitis often face complex decisions involving invasive procedures and long-term treatments, making readable and accurate patient education particularly important. Recent studies indicate that LLMs can improve the readability of ophthalmic educational materials [20-23]. However, most have relied on broad plain-language instructions or fixed targets, such as a sixth-grade reading level. Such uniform targets may not reflect the variation in patients’ vocabulary and linguistic complexity. Using the readability of the patient’s question as a reference could help avoid both under-explanation and cognitive overload, consistent with evidence that communication tailored to patient literacy and language style may improve comprehension, engagement, and health outcomes [24-27].

However, to our knowledge, no previous study has systematically measured the readability of real user questions and used it as a reference to align the readability of LLM-generated answers. Although recent work, including RephQA (Readability of LLMs in Public Health Question-Answering) and related studies on readability-aware health question answering, has emphasized the importance of evaluating communicative effectiveness and language adaptation, it has primarily focused on benchmarking, simulated reader conditions, or linguistic perturbations rather than explicitly enforcing question-answer readability matching during generation [12,19,20,28-30]. This gap is clinically and conceptually important. A patient-centered communication system should ideally adapt the complexity of its answer to the user’s linguistic profile, rather than applying a uniform readability target to all users. Readability formulas such as Flesch Reading Ease Score (FRES) and Flesch-Kincaid Grade Level (FKGL), despite their limitations, provide simple, reproducible proxies for textual complexity.

To address this gap, this study evaluated whether the readability of LLM-generated responses can be automatically aligned with that of user questions. We compared 3 readability-alignment strategies across 3 commercial LLMs and 1 open-source model, evaluating readability matching, response quality (accuracy, completeness, and empathy), and computational efficiency. This formative, predeployment evaluation aimed to establish technical feasibility and identify which prompting architecture reliably controls question-answer readability alignment, as a necessary step before summative evaluation of patient-level comprehension outcomes.


Overview of Study Design

This was a controlled comparative evaluation study of 3 commercial LLMs and 1 open-source model. Using a standardized dataset of user questions, we generated responses under 3 readability-control prompting strategies. The primary outcome was question-answer readability alignment across a baseline condition and 3 readability-control strategies. Secondary outcomes included response quality, specifically accuracy, completeness, and empathy; the effects of prompting strategy and question characteristics, including readability and length, on accuracy; and computational efficiency, assessed through token use, latency, and estimated cost.

A study protocol was prepared but not publicly registered; the relevant section is available from the corresponding author upon reasonable request.

Question Collection and Selection

Questions were collected via the YouTube (Google LLC) API between December 1 and 10, 2025, from public comments on ophthalmology-related videos posted by ophthalmologist-led and institutional channels. Comments were initially screened for clinical relevance and semantic coherence. Entries without meaningful ophthalmic content, such as greetings, emojis, unrelated remarks, or ambiguous statements lacking a clear medical question, were excluded. Only questions written in English were retained.

This process yielded a larger source pool of ophthalmic questions spanning multiple topics, including retinal diseases, ophthalmic symptoms, and surgical interventions such as retinal detachment, vitreoretinal surgery, age-related macular degeneration, cataract, and refractive surgery. Stratified random sampling was used to select 400 questions, with predefined quotas to ensure representation across readability (basic, intermediate, or higher, based on the FRES) and question length (<50, 50‐98, or ≥99 words). All questions were preserved in their original, unedited form, including spelling, syntax, and vocabulary, without grammatical correction or simplification, in order to preserve ecological validity and reflect real-world patient inquiries. Additionally, all questions were classified by an ophthalmologist according to their thematic domain and question type (factual or judgment-based, depending on whether they primarily sought objective information or decision-making guidance).

LLMs

Each question was submitted independently to 4 LLMs: GPT 5.2 (gpt-5.2; OpenAI), Claude Opus 4.5 (claude-opus-4-5-20251101; Anthropic), Gemini 3 (gemini-3-pro-preview; Google), and GPT-OSS-20b (openai/gpt-oss-20b; OpenAI). The inclusion of both proprietary and open-source models was intended to evaluate whether readability alignment strategies generalize across different model architectures and deployment paradigms. According to information reported by the model developers, the knowledge cutoffs were August 31, 2025, for GPT 5.2; January 2025 for the Gemini 3 series; May 2025 for Claude Opus 4.5; and June 1, 2024, for OSS-20b. Detailed proprietary training data and model architectures were not publicly available.

All inferences were performed programmatically via Python using the respective APIs between December 23, 2025, and January 15, 2026. GPT 5.2, Claude Opus 4.5, and Gemini 3 were accessed through their respective developers’ official APIs, whereas GPT-OSS-20b was accessed through OpenRouter (OpenRouter, Inc). No provider-specific routing configuration was specified for GPT-OSS-20b; OpenRouter’s default routing was used. Each question-response pair was generated in isolation, with no conversational memory or contextual carryover between questions. The Python script also logged response latency, token usage (input and output tokens), and, when applicable to the specific strategy, the readability score inferred directly by the model. Models were tested with a temperature of 0.2 and, where supported, top-k of 40; top-k was not available for GPT 5.2.

Readability Assessment and Categorization

Readability of both questions and LLM-generated responses was evaluated using the Textstat Python library, with FRES selected as the primary readability metric. FRES was calculated using Textstat version 0.7.11. Because FRES is conventionally interpreted on a 0 to 100 scale, although the formula itself is unbounded, negative outputs were clipped to 0. This lower boundary occurred in 26/400 (6.5%) questions and 153/6400 (2.4%) generated responses; no values exceeded 100, so no upper-bound clipping was required. FRES was chosen primarily because of its widespread use in health communication research, which facilitates comparison with previous studies, and because its continuous score provides greater granularity than formulas expressed as discrete grade-level estimates. This was particularly relevant for our dataset of real user-generated questions, many of which were short, as FRES was considered less susceptible to instability related to text length than exact grade-level measures such as the FKGL. Its continuous and readily interpretable scale also supported the classification of questions into broad readability categories and enabled the same standardized external signal to be applied to question stratification, prompt guidance, and question-response readability comparisons.

Because readability formulas vary across metrics and computational implementations [31], we classified questions into 3 broad readability levels rather than relying on exact grade-level estimates: basic (FRES>69), intermediate (FRES 30‐69), or higher (FRES<30) [24]. For the basic and higher categories, prompts were calibrated to the lowest grade level within each category to avoid overestimating the required educational level. For the intermediate category, the target was set at the midpoint of its defined grade range to reduce misclassification caused by threshold-adjacent scores.

In addition, secondary readability indices (FKGL, Gunning Fog Index, and Dale-Chall Readability Formula) were calculated, and question-response agreement was recalculated with each index as a robustness analysis.

Readability Alignment Conditions

Overview

Each question was submitted to the LLMs under 4 prompting conditions: a Baseline condition without readability control and 3 readability-alignment strategies designed to control the relationship between question readability and response readability. The full prompt templates are provided in Multimedia Appendix 1. The prompt templates were defined a priori based on established best practices and experience from a previous study, while maintaining consistent safety, length, and formatting instructions across conditions. The evaluation dataset was not used to refine the prompts.

Baseline (No Readability Control)

In the Baseline condition, the model was asked to answer the patient’s question without any explicit instruction regarding readability level, educational complexity, or linguistic adaptation. This condition served as the reference for comparison with the readability-alignment strategies.

Strategy 1: Formula-Informed Readability Prompt (FRES Prompt)

This approach relied on explicit disclosure of the readability metric. The model was provided with the full name and formula of the FRES and instructed to first estimate the FRES of the input question, assign it to 1 of 3 predefined readability tiers, and then generate a response at the corresponding level.

Strategy 2: Semantic Readability Inference (Semantic)

This strategy adopted a more implicit and human-like approach. Instead of readability formulas or numerical indices, the model received a brief instruction to infer the educational and linguistic complexity of the question directly from its wording, sentence structure, and vocabulary, and to adjust the response accordingly. This approach was motivated by prior work showing that LLMs can modulate linguistic complexity when conditioned on reader profiles or educational levels, using semantic and linguistic cues rather than explicit readability formulas [30]. However, unlike previous studies based on predefined or simulated reader categories, the current strategy evaluated whether such adaptation could be achieved directly from real patient-generated input, without external specification of the target readability level [29,30].

Strategy 3: External Calculator–Guided Prompt (Textstat)

In the third strategy, the FRES of each question was first calculated externally by a Python script using the Textstat library, and a brief instruction specifying the corresponding educational level was added to the prompt. Readability estimation was thus handled entirely outside the model, leaving the LLM responsible only for generating a response at the externally defined level. Unlike strategy 1, the model received no information about the underlying readability formula.

Response Quality Evaluation

Ground Truth Generation

For each of the 400 questions, a board-certified ophthalmologist (MCB) with extensive clinical experience prepared a reference answer. To standardize written structure and formatting across the dataset, the final text of these reference answers was refined with the assistance of GLM 4.7 (Z.ai, LLM) under ophthalmologist supervision. All reference answers were reviewed and approved by the ophthalmologist, who was responsible for their factual accuracy, completeness, and clinical appropriateness.

Automated Similarity Assessment

Semantic similarity between model-generated responses and the ground truth was quantified using Bidirectional Encoder Representations from Transformers Score (BERTScore) [32] with the Robustly Optimized BERT Pretraining Approach (RoBERTa)-large backbone, implemented via the bert-score Python library and Hugging Face Transformers (v4.57.3). We report the standard BERTScore F1 metric. Inverse document frequency weighting was not applied, and baseline rescaling was disabled. The evaluation was conducted in English, using the default layer configuration for RoBERTa-large in bert-score (17 layers) and a batch size of 16. This metric was used to assess content overlap while accounting for semantic equivalence rather than surface-level lexical similarity.

LLM-as-a-Judge Evaluation

Response quality was further assessed using an LLM-as-a-judge framework [33]. Generated responses were compared against the ground truth using a best-of-3 voting strategy, in which 2 independent LLMs initially evaluated each response (Qwen3-235B-A22B-Instruct-2507, Qwen team/Alibaba Cloud; DeepSeek V3, DeepSeek AI). In cases of disagreement, a third LLM served as a tiebreaker (Llama-3.3-70B-Instruct, Meta Platforms, Inc). This approach was chosen to mitigate individual model bias and is consistent with prior work demonstrating that multi-LLM evaluation frameworks improve reliability compared to single-judge systems [34].

Factual accuracy was evaluated using binary judgments (“1” for accurate and “0” for inaccurate), as earlier studies have demonstrated good agreement between binary LLM-as-a-judge assessments and human evaluations, supporting its reliability for structured correctness assessment [29,33,35-39]. A score of 1 indicated that the response did not contradict the reference answer and contained no clinically incorrect information. The response could include additional information or omit details from the reference answer without being classified as inaccurate, provided that the information presented remained clinically correct. A score of 0 indicated the presence of clinically incorrect information or a contradiction of the reference answer.

However, a binary scheme was considered insufficient to capture gradations in informational coverage and empathic communication. Therefore, completeness and empathy were evaluated using separate 3-level ordinal scales [36]. For completeness, a score of 1 indicated that the response did not address any of the explicit medically relevant questions contained in the user’s message. A score of 2 indicated that the response addressed some, but not all, of the explicit medically relevant questions. A score of 3 indicated that all explicit medically relevant questions were addressed. Nonmedical, nonsubstantive, or conversational remarks were not considered items requiring a response for the completeness assessment. For empathy, a score of 1 denoted dismissive, hostile, blaming, shaming, or clearly insensitive communication. A score of 2 denoted neutral and respectful communication without explicit emotional acknowledgment; such a response could be fully appropriate for primarily factual questions containing no emotional cue and was not considered poor or unacceptable. A score of 3 denoted explicit emotional acknowledgment or support in addition to the substantive response.

Human Validation

To validate the LLM-as-a-judge framework, a senior ophthalmologist (MCB) and an ophthalmology resident independently rated the same 640 question-response pairs using identical prespecified criteria; the sample was enriched for LLM-rated errors to approximately balance accurate and inaccurate ratings. Agreement was assessed between each evaluator and the LLM judge and between evaluators. Because of this enrichment, the sample does not reflect error prevalence in the full dataset.

Computational Cost Analysis

To address scalability and sustainability concerns, we quantified the additional computational cost associated with each readability-alignment strategy. Token usage (input and output tokens), inference time, and estimated API cost were recorded for all responses. Cost estimates were calculated by multiplying provider-reported pricing per million tokens by the observed token usage for each response, separately accounting for input and output tokens.

Statistical Analysis

Agreement between question and response readability categories was assessed by pairwise comparisons of quadratic-weighted Cohen κ across all model-strategy combinations, using paired permutation tests based on 5000 valid permutations and the Holm-Bonferroni correction for multiple testing. For each configuration, 95% CIs for κ were estimated by bootstrap resampling using 1000 valid samples. Additional agreement analyses included observed agreement, mean absolute error (MAE), root mean square error (RMSE), concordance correlation coefficient (CCC), and Pearson and Spearman correlations, as appropriate.

Semantic similarity and ordinal quality outcomes (completeness and empathy) were compared using Friedman tests followed by Wilcoxon signed-rank tests with correction for multiple comparisons. Binary accuracy was compared using exact McNemar tests with Holm correction; 95% CIs were calculated using Wilson and bootstrap methods. Associations between accuracy and question characteristics, including readability and length, were examined using logistic regression. Relationships involving categorical readability levels were analyzed using contingency-table methods and tests for ordinal trends, as appropriate. Agreement between LLM-based and human evaluations was quantified using Cohen kappa, with weighted kappa for ordinal outcomes. Mean evaluator ratings were compared using 2-sided paired permutation tests, with paired-bootstrap 95% CIs and Holm correction across the 9 comparisons.

Token usage, latency, and estimated cost were summarized using median (IQR) and compared using Friedman and Wilcoxon signed-rank tests. Paired differences between configurations are reported as Hodges-Lehmann estimates with exact distribution-free 95% CIs. All tests were 2-sided, and P<.05 was considered statistically significant after adjustment. All analyses were performed in Python (version 3.11).

Ethical Considerations

This study used publicly available information and did not involve human participants or identifiable personal information; therefore, in accordance with Brazilian regulations (National Health Council Resolution No. 510/2016), ethics committee approval was not required. No account metadata were collected, and no attempt was made to identify individual users. Example questions reproduced in the multimedia appendices are paraphrased to reduce traceability; analyses used the original texts.


Question Characteristics

Of 3011 user-generated ophthalmic questions collected from public YouTube comments (median FRES 69.99, IQR 57.18‐79.94), 1577/3011 (52.37%) had basic readability, 1294/3011 (42.98%) intermediate, and 140/3011 (4.65%) higher. From this pool, 400 questions were randomly selected, with at least 100 per readability and question length tier.

The final sample had a median FRES of 63.62 (IQR 28.37‐75.26). The questions covered a broad range of ophthalmologic topics, predominantly related to retinal disease, vitreous symptoms, and common surgical interventions (Table 1). According to the predefined criteria, 160 questions (40%) were classified as basic readability, 127 (31.75%) as intermediate, and 113 (28.25%) as higher readability.

Table 1. Thematic distribution, intent classification, and readability level of user-generated questions (N=400).
VariablesValue, n (%)
Primary themes
  Vitreous symptoms/posterior vitreous detachment/floaters111 (27.75)
  Cataract surgery (intraocular lens, light-adjustable lens, multifocal lenses, and postoperative care)63 (15.75)
  Macular and retinal vascular diseases (age-related macular degeneration, retinal vein occlusion, and macular edema)47 (11.75)
  Refractive surgery (Laser-Assisted in Situ Keratomileusis, photorefractive keratectomy, Implantable Collamer Lens)38 (9.50)
  Retinal detachment/retinal tears/retinopexy32 (8)
  Ocular surface disease/dry eye/cornea19 (4.75)
  Clinical treatments/medications/supplements19 (4.75)
  Neurologic symptoms/diplopia/strabismus16 (4)
  Refraction/glasses/prescriptions16 (4)
  Other ophthalmic surgeries15 (3.75)
  Retinal surgery (vitrectomy, epiretinal membrane, and macular pucker)10 (2.50)
  Glaucoma8 (2)
  Ocular trauma4 (1)
  Uveitis/intraocular inflammation2 (0.50)
Question intent
  Factual232 (58)
  Judgment-based168 (42)
Readability level
  Basic160 (40)
  Intermediate127 (31.75)
  Higher113 (28.25)

Readability Alignment Performance

Overall, the Textstat strategy yielded the highest question-response readability agreement across all 4 LLMs (κ=0.6911‐0.9444), followed by the FRES Prompt strategy in all models except GPT 5.2, whereas Baseline and Semantic prompting showed consistently low agreement (Figure 1 and Tables 2 and 3). Gemini 3 Textstat achieved the highest agreement (κ=0.9444), followed by GPT 5.2 Textstat (κ=0.9029), with no significant difference between them (adjusted P=.46). Complete pairwise comparisons, including unadjusted and Holm-adjusted P values, are provided in Multimedia Appendix 2.

‎
Figure 1. Quadratic-weighted Cohen kappa (κ) for question–response readability alignment by model and prompting strategy. Each panel represents one prompting condition (Baseline, Semantic, FRES Prompt, and Textstat), and the x-axis shows the 4 evaluated language models. Bars represent κ and error bars denote bootstrap 95% CIs, with exact values shown above each bar. κ quantifies agreement between the readability tier assigned to the original question (basic, intermediate, or higher) and the tier of the corresponding generated response; quadratic weighting penalizes 2-tier discrepancies more heavily than 1-tier discrepancies, so higher values indicate closer alignment and 0 indicates agreement no better than chance. Across all 4 models, the Textstat condition achieved the highest agreement and the Semantic condition the lowest. Pairwise comparisons with Holm-adjusted P values are reported in Multimedia Appendix 2. FRES: Flesch Reading Ease Score.
Table 2. Agreement between question and response readability categories across models, strategies, and readability formulasa.
Strategy and modelFRESb (κ)FKGLc (κ)Gunning fog (κ)Dale-Chall (κ)
Textstat
Gemini 30.94440.69690.73350.5784
GPT 5.20.90290.66800.73850.5004
OSS-20b0.87560.61280.68140.5111
Claude 4.50.69110.56800.63390.4594
FRES Prompt
Gemini 30.78550.57190.63580.5233
OSS-20b0.59310.40510.35430.3171
Claude 4.50.34450.31580.34420.1950
GPT 5.20.13020.25090.27820.1484
Baseline
Gemini 30.22240.10680.04340.0829
GPT 5.20.24740.12270.03930.0257
Claude 4.50.25960.12980.02590.0323
OSS-20b0.16270.12020.06040.0652
Semantic
Gemini 30.10320.17030.16270.0993
GPT 5.20.12330.14050.13470.0116
Claude 4.50.21230.15380.18590.0395
OSS-20b0.12800.15260.12880.0409

aValues are quadratic-weighted Cohen κ for agreement between the readability category of the original question and that of the generated response (N=400 question-response pairs per model-strategy configuration); for each formula, questions and responses were categorized using that same formula.

bFRES: Flesch Reading Ease Score.

cFKGL: Flesch-Kincaid Grade Level.

Table 3. Summary of readability alignment (κ) and response quality across models and prompting strategies.
Strategy and modelκa
(95% CI)
Accuracy, %b
(95% CI)
Completenessc
(95% CI)
Empathyc
(95% CI)
Textstat
Gemini 30.9444
(0.9229‐0.9616)
98.25
(96.43‐99.15)
2.80
(2.75‐2.83)
2.62
(2.57‐2.67)
GPT 5.20.9029
(0.8743‐0.9284)
99.75
(98.6‐99.96)
2.80
(2.76‐2.84)
2.13
(2.09‐2.16)
OSS-20b0.8756
(0.8410‐0.9034)
85.5
(81.71‐88.61)
2.63
(2.58‐2.67)
2.30
(2.25‐2.34)
Claude 4.50.6911
(0.6471‐0.7334)
95.75
(93.3‐97.33)
2.90
(2.87‐2.93)
2.79
(2.75‐2.83)
FRES Prompt
Gemini 30.7855
(0.7371‐0.8283)
98.5
(96.77‐99.31)
2.82
(2.78‐2.85)
2.65
(2.60‐2.69)
OSS-20b0.5931
(0.5301‐0.6490)
83.75
(79.82‐87.04)
2.62
(2.57‐2.67)
2.37
(2.32‐2.41)
Claude 4.50.3445
(0.2680‐0.4227)
97
(94.83‐98.28)
2.96
(2.94‐2.98)
2.74
(2.69‐2.78)
GPT 5.20.1302
(0.0539‐0.2033)
99.5
(98.2‐99.86)
2.89
(2.86‐2.92)
2.11
(2.08‐2.14)
Baseline
Gemini 30.2224
(0.1523‐0.2864)
98.75
(97.11‐99.46)
2.91
(2.88‐2.94)
2.72
(2.68‐2.77)
GPT 5.20.2474
(0.1827‐0.3127)
100
(99.05‐100)
2.91
(2.88‐2.94)
2.10
(2.07‐2.13)
Claude 4.50.2596
(0.1982‐0.3204)
97
(94.83‐98.28)
2.95
(2.93‐2.97)
2.72
(2.67‐2.76)
OSS-20b0.1627
(0.0930‐0.2269)
90
(86.67‐92.57)
2.76
(2.72‐2.80)
2.44
(2.39‐2.49)
Semantic
Gemini 30.1032
(0.0146‐0.1905)
99
(97.46‐99.61)
2.92
(2.89‐2.94)
2.60
(2.55‐2.65)
GPT 5.20.1233
(0.0486‐0.1980)
99.75
(98.6‐99.96)
2.94
(2.92‐2.96)
2.13
(2.10‐2.17)
Claude 4.50.2123
(0.1373‐0.2805)
97.25
(95.14‐98.46)
2.96
(2.94‐2.98)
2.60
(2.55‐2.65)
OSS-20b0.1280
(0.0611‐0.1911)
86.25
(82.53‐89.28)
2.67
(2.62‐2.72)
2.27
(2.23‐2.32)

aκ: quadratic-weighted Cohen kappa for agreement between question and answer readability categories (basic, intermediate, and higher), with bootstrap 95% CIs

bAccuracy: proportion of factually correct responses (LLM-as-a-judge), with Wilson 95% CIs.

cCompleteness and empathy: mean scores on a 3-point scale, with t-distribution 95% CIs.

The distribution of FRES scores similarly showed the clearest separation between the original question-readability tiers under the Textstat strategy, with less overlap and greater preservation of the expected tier ordering across models (Figure 2). The FRES Prompt showed intermediate performance, whereas Baseline and Semantic prompting tended to compress response readability toward the middle range. Most pairwise differences between readability tiers remained significant after Holm-Bonferroni correction. Detailed tier-level analyses are provided in Multimedia Appendices 3 and 4, and representative question-response examples are provided in Multimedia Appendices 5 and 6.

‎
Figure 2. Distribution of Flesch Reading Ease Scores (FRES) across models and prompting strategies, stratified by the readability tier of the original question. Each panel represents one language model, and the x-axis shows the original question and responses generated under the Baseline, Semantic, Flesch Reading Ease Score (FRES) Prompt, and Textstat conditions. Colors indicate the original question-readability tier: Basic (green), Intermediate (yellow), and Higher (red). Higher FRES values indicate easier-to-read text. Markers represent median FRES values, with connecting lines shown only as visual guides. Inner shaded bands indicate the IQR (Q25-Q75), and outer shaded bands indicate the 5th-95th percentile range; wider bands therefore reflect greater response variability. Dashed horizontal lines mark the predefined readability thresholds: basic (>69), intermediate (30-69), and higher (<30). The notation n(B/I/H) indicates the number of questions in each original tier: 160 basic, 127 intermediate, and 113 higher.

Stage-Wise Analysis of Semantic Strategy Performance

To further examine the Semantic strategy, we performed a staged agreement analysis, separating readability inference from response generation. Quadratic-weighted Cohen kappa was calculated for 2 comparisons: model-inferred question readability versus the formula-derived reference level, and response readability versus the model-inferred level.

Agreement between model-inferred and reference readability was low across models (κ=−0.0397 to 0.1308), indicating limited ability to accurately infer question readability. In contrast, agreement between response readability and the model-inferred level was substantially higher (Gemini 3: κ=0.9358; Claude 4.5: κ=0.8246; OSS-20b: κ=0.5456; GPT 5.2: κ=0.5399), suggesting that once a readability level was inferred, models generally adhered to it during generation.

Stage-Wise Analysis of FRES Prompt Strategy Performance

Across 400 samples per model, variability was observed in the LLMs’ ability to infer FRES relative to the external calculator reference (Figure 3). Gemini 3 showed the lowest MAE (7.82) and RMSE (12.13), along with a high CCC (0.893) and strong correlations with the reference (r=0.898; ρ=0.894). OSS-20b also showed relatively low error (MAE=10.27; RMSE=14.02) and high agreement metrics (CCC=0.861; r=0.881; ρ=0.830). Claude 4.5 presented higher error values (MAE=18.85; RMSE=26.14; CCC=0.330; r=0.423; ρ=0.436), whereas GPT 5.2 showed the highest error and lowest agreement metrics (MAE=23.66; RMSE=30.94; CCC=0.060; r=0.085; ρ=0.127).

‎
Figure 3. Relationship between formula-derived and model-inferred Flesch Reading Ease Score (FRES) across LLMs. Each panel represents one language model. The x-axis shows the formula-derived FRES of each original user question, whereas the y-axis shows the FRES inferred by the corresponding model. Higher FRES values indicate easier-to-read text. Each bubble represents one question and its corresponding model-inferred FRES value (n=400 per model), with bubble size proportional to question length in words. The dashed diagonal line represents perfect agreement between the formula-derived and model-inferred scores (y=x). Points above the line indicate that the model rated the question as easier to read than indicated by the formula-derived FRES, whereas points below the line indicate that the model rated it as more difficult to read. Pearson correlation coefficients (r) are displayed for each model and indicate the strength of the linear association between formula-derived and model-inferred FRES values; they should not be interpreted as measures of exact agreement.

Effect of Question Length on FRES Inference Accuracy

We compared the MAE in FRES estimation between short (n=194) and long (n=103) questions, with intermediate-length questions excluded from this analysis, using Welch t tests (Figure 3). For Claude 4.5, MAE was lower for long questions than for short questions (12.21 [SD 13.54] vs 25.61 [SD 20.81]; t283.02=6.69; P<.001). Similarly, GPT 5.2 showed lower MAE for long questions (16.99 [SD 12.53] vs 31.73 [SD 23.33]; t294.95=7.08; P<.001). In contrast, Gemini 3 (7.02 [SD 11.91] vs 8.40 [SD 8.08]; t153.11=1.06; P=.29) and OSS-20b (9.31 [SD 7.34] vs 10.64 [SD 10.74]; t276.72=1.26; P=.21) showed similar MAE for long and short questions.

Tier-Level Agreement Analysis

Tier agreement was evaluated using quadratic-weighted Cohen kappa coefficient (κ), comparing (1) the generated FRES tier versus the inferred tier and (2) the original question tier versus the inferred tier. For the generated versus inferred tier, Gemini 3 showed near-perfect agreement (κ=0.960), followed by OSS-20b with substantial agreement (κ=0.736). GPT 5.2 demonstrated moderate agreement (κ=0.441), whereas Claude 4.5 showed fair agreement (κ=0.315). When comparing the original question tier to the inferred tier, κ values were lower across all models. Gemini 3 maintained substantial agreement (κ=0.663), OSS-20b showed moderate agreement (κ=0.485), Claude 4.5 showed fair agreement (κ=0.294), and GPT 5.2 showed slight agreement (κ=0.053).

Agreement Across Alternative Readability Formulas

Agreement was generally lower with FKGL, Gunning Fog, and Dale-Chall than with FRES, but the relative pattern was preserved: Textstat showed the highest agreement, followed by FRES Prompt, with consistently low agreement for Semantic and Baseline (Table 2).

Quality Analysis

Semantic Similarity (BERTScore)

Mean F1 scores were high across all configurations (F1>0.87) and varied little across strategies within each model. For Baseline, Semantic, FRES Prompt, and Textstat, respectively, F1-score was 0.884, 0.873, 0.883, and 0.878 for Claude 4.5 and 0.903, 0.894, 0.893, and 0.893 for Gemini 3; GPT 5.2 ranged from 0.875 to 0.877, and OSS-20b from 0.872 (Textstat) to 0.878 (FRES Prompt). Although the Friedman test indicated a global difference across configurations (χ²15=2565.3; P<.001), within-model differences were approximately 0.01, and no pairwise difference between strategies was significant for GPT 5.2 (all Holm-adjusted P>.05). Between models, Gemini 3 had higher F1-score than all other models across all strategies (all adjusted P<.001), whereas differences between GPT 5.2 and OSS-20b were small and inconsistent. Overall, between-model differences (up to ~0.03) exceeded within-model differences across readability strategies (~0.01).

Accuracy (Binary LLM-as-a-Judge Evaluation)

Substantial differences were observed between models, whereas within-model strategy effects were generally small (Figure 4 and Table 3). GPT 5.2 achieved the highest accuracy (99.5%‐100% across strategies), followed closely by Gemini 3 (98.25‐99%). Claude 4.5 was intermediate (95.75%‐97.25%), whereas OSS-20b was consistently lower (83.75%‐90%; 335-360/400).

‎
Figure 4. Accuracy of models across prompting strategies. Points represent accuracy (%) for each model-strategy combination, and horizontal lines indicate 95% Wilson CIs. Colors denote model families (GPT 5.2=blue, Gemini 3=red, Claude 4.5=yellow, OSS-20b=green). Values on the right indicate the number of correct responses out of 400 items. The vertical dashed line indicates the 99% accuracy threshold.
Between-Model Comparisons

Pairwise exact McNemar tests with Holm-Bonferroni correction showed that all GPT 5.2 and Gemini 3 configurations outperformed all OSS-20b configurations by 8.25‐16.25 percentage points (all adjusted P<.001). Most Claude 4.5 configurations also outperformed OSS-20b by 7.00‐13.50 percentage points (all adjusted P≤.001), except Claude 4.5 Textstat versus OSS-20b baseline (5.75 percentage points; adjusted P=.054). Among GPT 5.2, Gemini 3, and Claude 4.5, most differences were small and nonsignificant after correction; significant contrasts were limited to GPT 5.2 baseline versus Claude 4.5 baseline and FRES Prompt (3.00 points; both adjusted P=.03) and the 4 GPT 5.2 configurations versus Claude 4.5 Textstat (3.75‐4.25 points; adjusted P=.001-.049; Figure 5). Complete pairwise results are provided in Multimedia Appendix 7.

‎
Figure 5. Pairwise differences in accuracy between model-strategy configurations. Rows and columns represent the evaluated combinations of language models and prompting strategies; model names shown without a strategy label represent the baseline configurations. Each cell displays the absolute difference in accuracy between 2 configurations, calculated as the accuracy of the row configuration minus that of the column configuration. Positive differences are shown in red and indicate higher accuracy for the row configuration, whereas negative differences are shown in blue and indicate higher accuracy for the column configuration. For example, a value of 0.10 corresponds to a difference of 10 percentage points. Greater color intensity indicates a larger absolute difference. The diagonal represents comparisons of each configuration with itself and therefore has a value of zero. Open circles indicate statistically significant pairwise differences according to exact McNemar tests after Holm-Bonferroni correction (adjusted P<.05). FRES: Flesch Reading Ease Score.
Within-Model Strategy Effects

Within individual models, prompting strategy had limited impact on accuracy. For GPT 5.2, Gemini 3, and Claude 4.5, no within-model comparison remained significant after Holm correction (all adjusted P>.99). For OSS-20b, Baseline accuracy exceeded FRES Prompt accuracy by 6.25 percentage points, the only significant within-model difference after correction (adjusted P=.02); all other OSS-20b comparisons were nonsignificant (all adjusted P≥.84).

Association Between Readability, Question Characteristics, and Accuracy

No significant association between question readability (FRES) and accuracy was observed for GPT 5.2, Gemini 3, or Claude 4.5, whereas OSS-20b showed lower accuracy for easier questions across Baseline, Textstat, and FRES Prompt. Response readability was likewise unrelated to accuracy for GPT 5.2 and Gemini 3, but showed negative associations for Claude 4.5 Textstat and OSS-20b Textstat and FRES Prompt. Higher target response complexity was associated with slightly higher overall accuracy, an effect minimal in high-performing models but more pronounced in OSS-20b and Claude 4.5 Textstat. Question length also showed a small inverse association with accuracy, particularly for OSS-20b and the Textstat and FRES Prompt strategies, with limited practical impact in higher-performing models. Complete results are provided in Multimedia Appendix 7.

Response Completeness Across Models and Prompting Strategies

All 16 configurations had a median completeness score of 3, although differences across configurations were significant (Friedman χ²15=723.5; P<.001; Kendall W=0.12). Mean scores were highest for Claude 4.5, followed by GPT 5.2 and Gemini 3, and lowest for OSS-20b (Table 3). In pairwise Wilcoxon tests with Holm-Bonferroni correction, Claude 4.5 FRES Prompt exceeded the OSS-20b configurations by 0.20 to 0.34 points, and Claude 4.5 Semantic exceeded Gemini 3 and GPT 5.2 Textstat by 0.16 (all adjusted P<.001). Complete pairwise results are provided in Multimedia Appendix 8.

Response Empathy Across Models and Prompting Strategies

All Claude 4.5 and Gemini 3 configurations had a median empathy score of 3, whereas all GPT 5.2 and OSS-20b configurations had a median of 2 (Friedman χ²15=1874.6; P<.001; Kendall W=0.31). Mean scores were highest for Claude 4.5, followed by Gemini 3, OSS-20b, and GPT 5.2 (Table 3). In pairwise Wilcoxon tests with Holm-Bonferroni correction, all Claude 4.5 and Gemini 3 configurations outperformed all GPT 5.2 and OSS-20b configurations; for example, Claude 4.5 Textstat exceeded GPT 5.2 Baseline by 0.69 and OSS-20b Semantic by 0.52 (all adjusted P<.001). Complete pairwise results are provided in Multimedia Appendix 9.

Agreement Between LLM-as-a-Judge and Human Evaluation

In the human-validation sample (n=640), agreement among the LLM judge, senior ophthalmologist, and ophthalmology resident was substantial for accuracy and empathy but moderate for completeness. For accuracy, LLM–ophthalmologist agreement was κ=0.788 (89.5% concordance), LLM–resident κ=0.745 (87.5%), and ophthalmologist–resident κ=0.664 (83.8%). For empathy, corresponding values were κ=0.791 (weighted κ=0.796; 89.7%), κ=0.736 (weighted κ=0.736; 86.7%), and κ=0.650 (weighted κ=0.649; 82.2%). Completeness showed lower agreement: LLM–ophthalmologist κ=0.436 (weighted κ=0.450; 73.3%), LLM–resident κ=0.471 (weighted κ=0.500; 76.7%), and ophthalmologist–resident κ=0.572 (weighted κ=0.575; 79.5%). Mean evaluator ratings are shown in Multimedia Appendix 10, with pairwise comparisons in Multimedia Appendix 11. The senior ophthalmologist assigned lower mean scores than the resident for accuracy, completeness, and empathy (all Holm-adjusted P≤.008), and lower completeness (P<.001) and empathy (P=.03) scores than the LLM judge; the accuracy difference between the ophthalmologist and LLM judge was not significant (P=.08).

Computational Efficiency

Token consumption, latency, and cost all differed substantially across the 16 model-strategy combinations (Friedman χ²15=5604.6, 4268.7, and 5879.4, respectively; all P<.001). Descriptive statistics are provided in Table S1 and all pairwise comparisons in Tables S2-S4 in Multimedia Appendix 12, with distributions shown in Figure 6. GPT 5.2 and Claude 4.5 were the most token-efficient families and Gemini 3 the least, with its highest consumption under the FRES Prompt (median 2598 tokens). Latency distributions were skewed. Among the stable configurations, GPT 5.2 was fastest (medians 4.38‐5.60 seconds), Claude 4.5 intermediate (6.68‐7.49 seconds), and Gemini 3 slowest, particularly under the FRES Prompt (25.95 seconds). OSS-20b was by far the least expensive family but the most variable, with extreme maxima under the FRES Prompt (22,309 tokens; 461.83 seconds). Total cost for the 400 questions ranged from US $0.03 (OSS-20b) to US $12.93 (Gemini 3, FRES Prompt), and the FRES Prompt increased cost relative to Baseline in all 4 families. Most paired Wilcoxon comparisons remained significant after Holm correction; the clearest exception was OSS-20b Baseline versus Textstat for cost (adjusted P=.70).

‎
Figure 6. Token usage, latency, and cost across models and prompting strategies. Raincloud plots (violin, boxplot, and jittered points) show the distributions of total tokens, latency, and estimated cost per response (US $) across strategies (Baseline, Semantic, FRES Prompt, Textstat) for each model (GPT 5.2, Gemini 3, Claude 4.5, OSS-20b). Central tendency and dispersion are summarized by the median (IQR). To preserve cross-model comparability, a shared global visual cap was applied within each metric (tokens=5000, latency=50 s, cost=US $0.05); clipping affected only visualization, while all statistical tests used full, untrimmed data. Asterisks indicate statistically significant within-model comparisons versus Baseline based on paired Wilcoxon signed-rank tests. For each efficiency outcome, P values were adjusted using the Holm procedure across all pairwise comparisons among the 16 model–strategy configurations (*P<.05, **P<.01, ***P<.001). FRES: Flesch Reading Ease Score.

Principal Results

Earlier work has shown that LLMs can generate text at predefined readability levels or estimate readability, but these capabilities have generally been studied separately rather than integrated within patient-level question answering [29,40]. To our knowledge, this study is the first to use the linguistic complexity of the user’s own question as the anchor for controlling response readability, rather than a single predefined readability target.

Without an explicit readability target, LLMs did not reliably align response complexity with that of the question, consistent with prior reports [18,41,42]. Baseline and Semantic prompting showed low agreement, whereas externally guided prompting improved alignment substantially. Textstat consistently outperformed Baseline and Semantic strategies across models, while the FRES Prompt produced intermediate and heterogeneous results, indicating that current LLMs follow explicit external readability targets more reliably than they infer them autonomously.

We therefore recommend the Textstat strategy when question-response readability matching is a design goal. Because readability is computed deterministically from the question, its performance is less dependent on model-specific estimation ability. Figure 7 presents this workflow as a reusable template based on a readability library, 3 threshold-mapped style instructions, and specialty-specific adaptation of the base prompt.

‎
Figure 7. Recommended prompting workflow (Textstat strategy). A Python script computes the Flesch Reading Ease Score (FRES) of the patient’s question before any model call, and the score selects 1 of 3 style instructions (shown in full) that is appended to the base prompt. Because classification is deterministic, the template applies to any specialty by changing the specialty designation. For deployment, the experimental instruction not to disclose AI involvement (Multimedia Appendix 1) should be removed.

Comparison With Prior Work

Our findings are consistent with studies in orthopedic trauma, gynecology, hand surgery, mixed specialties, and cardiology showing that LLMs can improve the readability of patient-facing materials [9,15,16,19,43]. However, prior work has largely focused on rewriting existing content toward fixed targets, typically a sixth-grade reading level, which models have not always achieved reliably [15,43].

Accuracy was influenced more by model architecture than by readability-control strategy. GPT 5.2 and Gemini 3 maintained very high factual accuracy across conditions, whereas OSS-20b performed consistently worse, in line with previous medical question-answering studies [18,42-47]. Readability control had little effect on accuracy in stronger models, and BERTScore remained high across strategies, although semantic similarity should complement rather than replace direct factual accuracy assessment [48]. Multidimensional evaluation further showed distinct model profiles: GPT 5.2 achieved the highest accuracy but the lowest empathy, Claude 4.5 ranked highest for completeness and empathy despite slightly lower accuracy, and Gemini 3 combined near-ceiling accuracy with the highest semantic similarity and empathy close to Claude 4.5. OSS-20b underperformed across most quality dimensions, particularly under explicit readability constraints, suggesting that controllable patient-oriented communication may be more demanding for smaller models.

Furthermore, in OSS-20b, accuracy was lower under explicit readability constraints and when responses targeted the basic level, suggesting that weaker models may face trade-offs between stylistic control and factual reliability. However, the literature does not support a universally antagonistic relationship between simplification and accuracy; simpler patient-oriented explanations can remain equally accurate, or even be preferred, when simplification improves conceptual clarity without omitting essential information [49,50]. Overall, these findings indicate that readability adaptation is not inherently detrimental to quality, but rather depends on how simplification is implemented and on the model’s capability. Although several secondary comparisons reached statistical significance, their absolute magnitudes were often small, particularly among the higher-performing commercial models. In contrast, the differences in readability alignment across prompting strategies and the lower accuracy of OSS-20b were more substantial and practically relevant.

Question characteristics also influenced LLM performance. Longer questions were associated with slightly lower accuracy, particularly in OSS-20b and in the 2 strategies whose readability target was derived from the FRES (Textstat and FRES Prompt), but not under Baseline or Semantic prompting. A possible explanation is that adhering to a FRES-based readability target while addressing the additional conditions, contextual details, or multiple sub-questions of longer questions increases task demands [51-53]. However, the practical magnitude of this effect was small in the strongest systems.

The LLM-as-a-judge framework showed encouraging agreement with human evaluation: substantial for accuracy and empathy, and moderate for completeness. The lower agreement for completeness likely reflects differences in how evaluators interpreted which portions of a comment constituted an explicit question rather than context without direct interrogative intent. This is consistent with reports that LLM-based evaluators can approach expert-level agreement when prompts, rubrics, and aggregation strategies are carefully designed, particularly under categorical rather than unconstrained scalar scoring [29,33,35-39,54-57]. Nevertheless, the approach remains recent, and the optimal models, rubrics, and scoring strategies are not yet established; its output is therefore better suited to comparative analysis than to absolute measurement of quality. Notably, agreement between our 2 human reviewers was lower than LLM–human agreement for accuracy and empathy, with the senior ophthalmologist assigning stricter scores than the resident across all 3 outcomes. LLM-as-a-judge is thus best positioned as a scalable complement to, not a substitute for, human oversight.

These findings may have translational implications for patient education, where automatic readability alignment could help LLMs provide individualized explanations without relying on a single fixed reading target, particularly in populations with heterogeneous health literacy. Because the approach anchors response complexity in the user’s own language, it could also be explored in other domains that communicate with diverse audiences, such as education, public health messaging, and government services, although this was not evaluated here.

This approach is intended to support clinician-facing tools that generate readability-adapted responses for digital patient communication, with transparency regarding AI involvement, clinician responsibility, and mandatory clinician review before delivery; the experimental prompts reported in Multimedia Appendix 1 are not proposed unchanged for patient-facing deployment.

Strengths and Limitations

This study has several strengths. Analysis across alternative readability formulas strengthened the robustness of our findings. Although agreement was highest with FRES, which served as the main control variable, the external calculator-guided strategy remained superior across FKGL, Gunning Fog, and even Dale-Chall, which relies on word familiarity rather than sentence and syllable length, suggesting that its advantage was not an artifact of a single formula. At the same time, lower kappa values with alternative indices reinforce that readability formulas capture different dimensions of textual complexity and that no single metric represents a gold standard for patient comprehension [2].

More broadly, our findings do not support relying on unconstrained model-based interpretation alone to control readability. Although natural language processing and machine learning approaches may complement traditional formulas, formula-free Semantic prompting performed substantially worse than externally guided prompting and, in some cases, worse than Baseline generation [30]. Traditional readability formulas, despite their limitations, remain transparent, reproducible, and operationally stable. Our findings therefore support a hybrid approach in which readability formulas serve as explicit control signals for LLM-generated patient communication.

Another strength was the use of real, unedited user questions rather than curated benchmarks or rewritten prompts, which better reflects real-world deployment and provides a stricter test of readability adaptation. The final sample was intentionally balanced across readability levels and question length to support robust comparisons, although basic and intermediate questions predominated in the original corpus.

This study also has several limitations. Readability formulas are indirect proxies for textual complexity and do not directly measure comprehension or broader health literacy, nor do they capture conceptual clarity, prior knowledge, discourse organization, or empathy [58,59]. Although preferred over grade-level formulas, FRES may be less stable for short or grammatically irregular text, in which sentence length and syllable counts dominate the score. Readability, understandability, and actionability are also distinct constructs [60]. Because individual health literacy, comprehension, and preferred explanation level were not assessed, question-response readability matching should be viewed as an operational objective rather than evidence that a matched response is optimal for a given patient. Evidence that readability adjustment alone improves comprehension is mixed [61-63]. Thus, our findings demonstrate structural readability control rather than improved comprehension or health literacy. Future studies should directly assess comprehension, recall, actionability, and decision-related outcomes.

The analysis was restricted to English-language questions, and the readability indices were originally developed for English; therefore, findings may not generalize fully to other languages. The questions were also unevenly distributed across ophthalmology topics, which may affect generalizability. Because the study was limited to ophthalmology, despite evidence that LLMs can simplify patient-facing materials in other specialties [9,15,16,19,43], these findings do not establish that question-response readability matching generalizes beyond ophthalmology. Further studies should evaluate other clinical domains and whether readability alignment can be achieved without compromising factual accuracy.

The use of YouTube comments also involves a trade-off because other public sources, including health forums and social media platforms, may represent different populations and question types. However, unedited YouTube comments preserve spontaneous language and resemble questions received by physicians on social media, a potential application of this pipeline. Recent, idiosyncratically worded comments may also be less likely to have appeared in model training, although this cannot be verified. Future studies should compare multiple question sources.

Future studies could prospectively recruit patients with diverse educational and health-literacy backgrounds, ask them to formulate questions in their own words, and obtain direct ratings of response readability, completeness, empathy, usefulness, and overall preference. Additional work should include objective measures of comprehension and recall, comparisons with fixed-target and general plain-language approaches, reproducibility across repeated generations, and generalizability across languages and clinical domains. Models explicitly trained or fine-tuned for readability estimation and controllable generation may also improve inference of question complexity and response alignment.

Conclusions

The findings of this study suggest that LLM-generated responses can be aligned with the formula-derived readability of users’ own questions, particularly when externally calculated readability signals are used. Importantly, the findings underscore the roles of model architecture, readability-control strategy, and question characteristics in determining the readability and accuracy of LLM-generated responses.

Acknowledgments

The authors thank Isabela Reginato Monaretto, MD, for her contribution as an independent evaluator in the human validation of the LLM-as-a-judge framework.

Generative AI Use

The authors disclose the use of generative AI during the preparation of this manuscript. ChatGPT 5.4 (OpenAI) was used for orthographic and grammatical revision of the manuscript text, ChatGPT 5.2 (OpenAI) assisted in drafting and debugging the Python scripts used for data processing and statistical analysis, and Claude Opus 5.5 (Anthropic) was used to help condense selected paragraphs during the final revision. Generative AI was not used for study conception, methodological decisions, data interpretation, or drawing scientific conclusions. All AI-assisted outputs were reviewed and validated by the authors, who take full responsibility for the content of this work.

Funding

The authors declared no financial support was received for this work.

Data Availability

The data underlying this study consist of user-generated comments retrieved from a third-party platform. The full corpus of original comment texts is not redistributed because the platform's terms of service restrict republication of user content. A limited number of illustrative question–response pairs are presented in Multimedia Appendices 5 and 6; the user questions have been paraphrased to reduce traceability, whereas the model-generated responses are reproduced as generated. No usernames, channel identifiers, profile links, timestamps, or other account metadata are included. The derived data required to reproduce all analyses (readability scores, tier assignments, model responses, and evaluation ratings) and the analysis scripts are available from the corresponding author (MCB) upon reasonable request. Requests should be sent by email to the corresponding author and will be answered within 30 days; access is granted for noncommercial research use.

Authors' Contributions

Conceptualization: MCB, DL, AAMR, PCC

Data curation: MCB

Formal analysis: MCB

Investigation: MCB

Methodology: MCB, DL, AAMR, PCC

Project administration: MCB

Software: MCB

Supervision: MCB, PCC

Validation: DL, AAMR, PCC

Visualization: MCB

Writing – original draft: MCB

Writing – review & editing: MCB, DL, AAMR, PCC

Conflicts of Interest

None declared.

Multimedia Appendix 1

Prompts used in each prompting strategy.

DOCX File, 19 KB

Multimedia Appendix 2

Pairwise comparisons of quadratic-weighted Cohen kappa with multiplicity adjustments.

DOCX File, 39 KB

Multimedia Appendix 3

Pairwise readability-tier contrasts with Holm-Bonferroni adjustment.

DOCX File, 30 KB

Multimedia Appendix 4

Stage-wise omnibus comparisons across question readability tiers for each model and pooled across models.

DOCX File, 19 KB

Multimedia Appendix 5

Examples of best and worst readability alignment by model and prompting strategy.

DOCX File, 77 KB

Multimedia Appendix 6

Examples of category-aligned question-response pairs across readability levels and models using the External Calculator–Guided Prompt strategy.

DOCX File, 43 KB

Multimedia Appendix 7

Accuracy analyses: pairwise comparisons across model-strategy configurations and associations of readability and question length with accuracy.

DOCX File, 78 KB

Multimedia Appendix 8

Pairwise comparisons of completeness scores with Holm adjustment.

DOCX File, 46 KB

Multimedia Appendix 9

Pairwise comparisons of empathy scores with Holm adjustment.

DOCX File, 40 KB

Multimedia Appendix 10

Mean evaluator ratings for accuracy, completeness, and empathy in the human-validation sample.

PNG File, 247 KB

Multimedia Appendix 11

Pairwise comparisons of accuracy, completeness, and empathy scores among evaluators with Holm adjustment.

DOCX File, 19 KB

Multimedia Appendix 12

Computational efficiency of the readability-alignment strategies: descriptive statistics and pairwise comparisons.

DOCX File, 69 KB

Checklist 1

TRIPOD-LLM checklist.

DOCX File, 40 KB

  1. Singh S, Jamal A, Qureshi F. Readability metrics in patient education: where do we innovate? Clin Pract. Nov 4, 2024;14(6):2341-2349. [CrossRef] [Medline]
  2. Wang LW, Miller MJ, Schmitt MR, Wen FK. Assessing readability formula differences with written health information materials: application, results, and recommendations. Res Social Adm Pharm. 2013;9(5):503-516. [CrossRef] [Medline]
  3. Patel PA, Gopali R, Reddy A, Patel KK. The readability of ophthalmological patient education materials provided by major academic hospitals. Semin Ophthalmol. Jan 2, 2022;37(1):71-76. [CrossRef] [Medline]
  4. Williams AM, Muir KW, Rosdahl JA. Readability of patient education materials in ophthalmology: a single-institution study and systematic review. BMC Ophthalmol. Aug 3, 2016;16:133. [CrossRef] [Medline]
  5. Crabtree L, Lee E. Assessment of the readability and quality of online patient education materials for the medical treatment of open-angle glaucoma. BMJ Open Ophthalmol. 2022;7(1):e000966. [CrossRef] [Medline]
  6. Wasir AS, Volgman AS, Jolly M. Assessing readability and comprehension of web-based patient education materials by American Heart Association (AHA) and CardioSmart online platform by American College of Cardiology (ACC): how useful are these websites for patient understanding? Am Heart J Plus. Aug 2023;32:100308. [CrossRef] [Medline]
  7. Rooney MK, Santiago G, Perni S, et al. Readability of patient education materials from high-impact medical journals: a 20-year analysis. J Patient Exp. 2021;8:2374373521998847. [CrossRef] [Medline]
  8. Haver HL, Gupta AK, Ambinder EB, et al. Evaluating the use of ChatGPT to accurately simplify patient-centered information about breast cancer prevention and screening. Radiol Imaging Cancer. Mar 2024;6(2):e230086. [CrossRef] [Medline]
  9. Covarrubias O, Ghanem D, Murdock C, Domes C, Shafiq B. Improving the readability of trauma patient education materials: a ChatGPT solution demonstrated using materials by the Orthopaedic Trauma Association. OTA Int. Dec 2025;8(4):e417. [CrossRef] [Medline]
  10. Olszewski R, Brzeziński J, Watros K, Rysz J. Quantifying readability in chatbot-generated medical texts using classical linguistic indices: a review. Appl Sci. 2026;16(3):1423. [CrossRef]
  11. Gatiganti A, Ramji HF, Lampenfeld J, et al. S2997 health literacy in the age of artificial intelligence: readability of LLM-generated materials for patients with IBD. Am J Gastroenterol. 2025;120(10S2):S644-S644. [CrossRef]
  12. Aydin S, Karabacak M, Vlachos V, Margetis K. Large language models in patient education: a scoping review of applications in medicine. Front Med (Lausanne). 2024;11:1477898. [CrossRef] [Medline]
  13. Hershenhouse JS, Mokhtar D, Eppler MB, et al. Accuracy, readability, and understandability of large language models for prostate cancer information to the public. Prostate Cancer Prostatic Dis. Jun 2025;28(2):394-399. [CrossRef] [Medline]
  14. Palmarin E, Lando S, Marchet A, et al. Assessing the accuracy and readability of large language model guidance for patients on breast cancer surgery preparation and recovery. J Clin Med. Aug 1, 2025;14(15):5411. [CrossRef] [Medline]
  15. Daram NR, Maxwell RA, D’Amato J, Massengill JC. Can artificial intelligence improve the readability of patient education information in gynecology? Am J Obstet Gynecol. Dec 2025;233(6):640.e1-640.e9. [CrossRef] [Medline]
  16. Abdelmalek G, Uppal H, Garcia D, Farshchian J, Emami A, McGinniss A. Leveraging ChatGPT to produce patient education materials for common hand conditions. J Hand Surg Glob Online. Jan 2025;7(1):37-40. [CrossRef] [Medline]
  17. Roster K, Kann RB, Farabi B, Gronbeck C, Brownstone N, Lipner SR. Readability and health literacy scores for ChatGPT-generated dermatology public education materials: cross-sectional analysis of sunscreen and melanoma questions. JMIR Dermatol. Mar 6, 2024;7:e50163. [CrossRef] [Medline]
  18. Bulla MC, Scocco CA, Spadoni VS, et al. Chatbots versus retina specialists in answering real-world retina questions. Int J Retina Vitreous. Oct 31, 2025;11(1):120. [CrossRef] [Medline]
  19. Will J, Gupta M, Zaretsky J, Dowlath A, Testa P, Feldman J. Enhancing the readability of online patient education materials using large language models: cross-sectional study. J Med Internet Res. Jun 4, 2025;27:e69955. [CrossRef] [Medline]
  20. Kianian R, Sun D, Crowell EL, Tsui E. The use of large language models to generate education materials about uveitis. Ophthalmol Retina. Feb 2024;8(2):195-201. [CrossRef] [Medline]
  21. Mohammadi SS, Khatri A, Jain T, et al. Evaluation of the appropriateness and readability of ChatGPT-4 responses to patient queries on uveitis. Ophthalmol Sci. 2025;5(1):100594. [CrossRef] [Medline]
  22. Dihan Q, Chauhan MZ, Eleiwa TK, et al. Using large language models to generate educational materials on childhood glaucoma. Am J Ophthalmol. Sep 2024;265:28-38. [CrossRef] [Medline]
  23. Kianian R, Sun D, Giaconi J. Can ChatGPT aid clinicians in educating patients on the surgical management of glaucoma? J Glaucoma. Feb 1, 2024;33(2):94-100. [CrossRef] [Medline]
  24. Ehara Y. An analytical study of the Flesch-Kincaid readability formulae to explain their robustness over time. In: Oco N, Dita SN, Borlongan AM, Kim JB, editors. Presented at: Proceedings of the 38th Pacific Asia Conference on Language, Information and Computation; Dec 7-9, 2024:989-997; Tokyo, Japan. URL: https://aclanthology.org/2024.paclic-1.94 [Accessed 2026-10-02]
  25. Van Dulmen AM, Bensing JM. Health promoting effects of the physician-patient encounter. Psychol Health Med. Aug 2002;7(3):289-300. [CrossRef]
  26. Deshields TL, Wells-Di Gregorio S, Flowers SR, et al. Addressing distress management challenges: recommendations from the consensus panel of the American Psychosocial Oncology Society and the Association of Oncology Social Work. CA Cancer J Clin. Sep 2021;71(5):407-436. [CrossRef] [Medline]
  27. Gilligan T, Coyle N, Frankel RM, et al. Patient-clinician communication: American Society of Clinical Oncology Consensus Guideline. J Clin Oncol. Nov 1, 2017;35(31):3618-3632. [CrossRef] [Medline]
  28. Rahman MM, Lybarger K. Evaluating health question answering under readability-controlled style perturbations. Presented at: Fourth Workshop on Text Simplification, Accessibility and Readability (TSAR 2025). [CrossRef]
  29. Qiu W, Huang T, Rullo R, Kuang Y, Maatouk A, Ramos SR, et al. RephQA: evaluating readability of large language models in public health question answering. arXiv. Preprint posted online on Oct 3, 2025. [CrossRef]
  30. Huynh L, McNamara DS. Natural language processing as a scalable method for evaluating educational text personalization by LLMs. Appl Sci. 2025;15(22):12128. [CrossRef]
  31. Carter B, Nayak K, Vembenil I. The accuracy of readability formulas in health content: a systematic review. J Healthc Commun. 2024;9(1):9002. [CrossRef]
  32. Zhang T, Kishore V, Wu F, Weinberger KQ, Artzi Y. BERTScore: evaluating text generation with BERT. arXiv. Preprint posted online on Apr 21, 2019. [CrossRef]
  33. Gu J, Jiang X, Shi Z, et al. A survey on LLM-as-a-judge. Innovation (Camb). Jun 1, 2026;7(6):101253. [CrossRef] [Medline]
  34. Li X, Wang K, Gouda G, Choudhary S, Wang Y, Hu L, et al. Who judges the judge? LLM jury-on-demand: building trustworthy LLM evaluation systems. arXiv. Preprint posted online on Dec 1, 2025. [CrossRef]
  35. Baysan MS, Uysal S, İşlek İ, Çığ Karaman Ç, Güngör T. LLM-as-a-judge: automated evaluation of search query parsing using large language models. Front Big Data. 2025;8:1611389. [CrossRef] [Medline]
  36. Tripathi T, Wadhwa M, Durrett G, Niekum S. Pairwise or pointwise? evaluating feedback protocols for bias in LLM-based evaluation. arXiv. Preprint posted online on Aug 21, 2025. [CrossRef]
  37. Yamauchi Y, Yano T, Oyamada M. An empirical study of LLM-as-a-judge: how design choices impact evaluation reliability. arXiv. Preprint posted online on Jun 16, 2025. [CrossRef]
  38. Wang Y, Song Y, Zhu T, et al. TrustJudge: inconsistencies of LLM-as-a-judge and how to alleviate them. arXiv. Preprint posted online on Sep 25, 2025. [CrossRef]
  39. Shi L, Ma C, Liang W, Diao X, Ma W, Vosoughi S. Judging the judges: a systematic study of position bias in LLM-as-a-judge. Presented at: 14th International Joint Conference on Natural Language Processing and the 4th Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics; Dec 20-24, 2025:292-314; Mumbai, India. [CrossRef]
  40. Ribeiro LFR, Bansal M, Dreyer M. Generating summaries with controllable readability levels. Presented at: 2023 Conference on Empirical Methods in Natural Language Processing; Dec 6-10, 2023. [CrossRef]
  41. Liu F, Jin T, Lee JSY. Automatic readability assessment for sentences: neural, hybrid and large language models. Lang Resour Eval. Sep 2025;59(3):2265-2296. [CrossRef]
  42. Strzalkowski P, Strzalkowska A, Chhablani J, et al. Evaluation of the accuracy and readability of ChatGPT-4 and Google Gemini in providing information on retinal detachment: a multicenter expert comparative study. Int J Retina Vitreous. Sep 2, 2024;10(1):61. [CrossRef] [Medline]
  43. Rouhi AD, Ghanem YK, Yolchieva L, et al. Can artificial intelligence improve the readability of patient education materials on aortic stenosis? A pilot study. Cardiol Ther. Mar 2024;13(1):137-147. [CrossRef] [Medline]
  44. Antaki F, Mikhail D, Milad D, et al. Performance of GPT-5 frontier models in ophthalmology question answering. Ophthalmol Sci. Feb 2026;6(2):101034. [CrossRef] [Medline]
  45. Kung TH, Cheatham M, Medenilla A, et al. Performance of ChatGPT on USMLE: potential for AI-assisted medical education using large language models. PLOS Digit Health. Feb 2023;2(2):e0000198. [CrossRef] [Medline]
  46. Singhal K, Azizi S, Tu T, et al. Large language models encode clinical knowledge. Nature. Aug 2023;620(7972):172-180. [CrossRef] [Medline]
  47. Antaki F, Touma S, Milad D, El-Khoury J, Duval R. Evaluating the performance of ChatGPT in ophthalmology: an analysis of its successes and shortcomings. Ophthalmol Sci. Dec 2023;3(4):100324. [CrossRef] [Medline]
  48. Hanna M, Bojar O. A fine-grained analysis of BERTScore. 2021. Presented at: Sixth Conference on Machine Translation; Nov 10-11, 2021:507-517. URL: https://aclanthology.org/2021.wmt-1.59 [Accessed 2026-10-02]
  49. Bondok M, Selvakumar R, Law C, Ing EB, Bakshi NK, Felfeli T. Comparing ophthalmologist and artificial intelligence chatbot responses to patient questions. Clin Ophthalmol. 2025;19:4293-4300. [CrossRef] [Medline]
  50. Beale SK, Cohen N, Secheli B, McIntire D, Kho KA. Comparing physician and artificial intelligence chatbot responses to posthysterectomy questions posted to a public social media forum. AJOG Glob Rep. Aug 2025;5(3):100553. [CrossRef] [Medline]
  51. Levy M, Jacoby A, Goldberg Y. Same task, more tokens: the impact of input length on the reasoning performance of large language models. Presented at: 62nd Annual Meeting of the Association for Computational Linguistics; Aug 11-16, 2024. [CrossRef]
  52. Wang Z, Kodner J, Rambow O. Evaluating LLMs with multiple problems at once. Presented at: Proceedings of the Fourth Workshop on Generation, Evaluation and Metrics (GEM2); Jul 31 to Aug 1, 2025:178-199. URL: https://aclanthology.org/2025.gem-1.14 [Accessed 2026-10-02]
  53. Du Y, Tian M, Ronanki S, et al. Context length alone hurts LLM performance despite perfect retrieval. arXiv. Preprint posted online on Oct 6, 2025. [CrossRef]
  54. Liu Y, Iter D, Xu Y, Wang S, Xu R, Zhu C. G-Eval: NLG evaluation using GPT-4 with better human alignment. Presented at: 2023 Conference on Empirical Methods in Natural Language Processing; Dec 6-10, 2023. [CrossRef]
  55. Siro C, Aliannejadi P, Aliannejadi M. Learning to judge: LLMs designing and applying evaluation rubrics. Presented at: Findings of the Association for Computational Linguistics: EACL 2026; Mar 24-29, 2026:6371-6389; Rabat, Morocco. [CrossRef]
  56. Han S, Titericz Junior G, Balough T, Zhou W. Judge’s verdict: a comprehensive analysis of LLM judge capability through human agreement. arXiv. Preprint posted online on Oct 10, 2025. [CrossRef]
  57. Liu Y, Zhou H, Guo Z, et al. Aligning with human judgement: the role of pairwise preference in large language model evaluators. Presented at: First Conference on Language Modeling (COLM 2024); Oct 7-9, 2024. URL: https://openreview.net/forum?id=9gdZI7c6yr [Accessed 2026-11-03]
  58. Chew LD, Bradley KA, Boyko EJ. Brief questions to identify patients with inadequate health literacy. Fam Med. Sep 2004;36(8):588-594. [Medline]
  59. Wittink H, Oosterhaven J. Patient education and health literacy. Musculoskelet Sci Pract. Dec 2018;38:120-127. [CrossRef] [Medline]
  60. Vishnevetsky J, Walters CB, Tan KS. Interrater reliability of the Patient Education Materials Assessment Tool (PEMAT). Patient Educ Couns. Mar 2018;101(3):490-496. [CrossRef] [Medline]
  61. Eaton ML, Holloway RL. Patient comprehension of written drug information. Am J Hosp Pharm. Feb 1980;37(2):240-243. [CrossRef] [Medline]
  62. Davis TC, Fredrickson DD, Arnold C, Murphy PW, Herbst M, Bocchini JA. A polio immunization pamphlet with increased appeal and simplified language does not improve comprehension to an acceptable level. Patient Educ Couns. Jan 1998;33(1):25-37. [CrossRef] [Medline]
  63. Mac O, Ayre J, McCaffery K, Boroumand F, Bell K, Muscat DM. The readability study: a randomised trial of health information written at different grade reading levels. J Gen Intern Med. Jun 2025;40(8):1820-1828. [CrossRef] [Medline]


‎
BERTScore: Bidirectional Encoder Representations from Transformers Score
CCC: concordance correlation coefficient
FKGL: Flesch-Kincaid Grade Level
FRES: Flesch Reading Ease Score
LLM: large language model
MAE: mean absolute error
RMSE: root mean square error
RoBERTa: Robustly Optimized Bidirectional Encoder Representations from Transformers Pretraining Approach


Edited by Ivan Steenstra; submitted 08.Apr.2026; peer-reviewed by Armaun Rouhi, Maria Chatzimina, Rebecca Lin; final revised version received 19.Oct.2026; accepted 20.Oct.2026; published 05.Nov.2026.

Copyright

© Mário César Bulla, Daniel Lavinsky, Alexandre Antonio Marques Rosa, Pedro Carlos Carricondo. Originally published in JMIR Formative Research (https://formative.jmir.org), 5.Nov.2026.

This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Formative Research, is properly cited. The complete bibliographic information, a link to the original publication on https://formative.jmir.org, as well as this copyright and license information must be included.