// Paraphrase Practice — the single most tested skill in IELTS. // Reading: matching headings/summaries. Writing: rephrasing the prompt. Listening: recognizing reworded info. // User sees a sentence → rewrites it → gets scored on meaning preservation + lexical change. function ParaphrasePractice({ state, update }) { const [original, setOriginal] = useState(null); const [userText, setUserText] = useState(''); const [result, setResult] = useState(null); const [loading, setLoading] = useState(false); const [level, setLevel] = useState('intermediate'); const [stats, setStats] = useState({ attempts: 0, good: 0 }); const hasBackend = state.auth?.user && window.apiClient.isConfigured(); const SENTENCES = { beginner: [ "Many people think that technology has improved their lives.", "Education is important for getting a good job.", "The government should invest more money in healthcare.", "Children learn better when they enjoy what they study.", "Pollution is one of the biggest problems facing cities today.", "Some people prefer to live in the countryside rather than in cities.", "Exercise is essential for maintaining good health.", "The internet has changed the way people communicate with each other.", ], intermediate: [ "The rapid growth of social media has fundamentally altered how people form and maintain relationships.", "While economic development brings prosperity, it often comes at a significant environmental cost.", "Access to quality education remains unevenly distributed across different socioeconomic groups.", "The aging population in developed countries poses serious challenges for healthcare systems and pension funds.", "Technological automation is expected to displace millions of workers in the coming decades.", "Cultural diversity enriches societies but can also lead to tensions if not managed thoughtfully.", "The increasing prevalence of remote work has blurred the boundaries between professional and personal life.", "Climate change disproportionately affects developing nations that have contributed least to the problem.", ], advanced: [ "The unprecedented acceleration of artificial intelligence development raises profound ethical questions about the nature of human cognition and the future of employment.", "Notwithstanding the considerable benefits of globalisation, there is compelling evidence that it has exacerbated income inequality within and between nations.", "The commodification of higher education threatens to undermine its fundamental purpose of fostering critical thinking and intellectual development.", "While proponents of genetic engineering cite its potential to eradicate hereditary diseases, critics argue that such interventions could have unforeseen and irreversible consequences.", "The erosion of press freedom in numerous democracies signals a troubling retreat from the principles of transparency and accountability.", ], }; const generate = () => { const pool = SENTENCES[level] || SENTENCES.intermediate; setOriginal(pool[Math.floor(Math.random() * pool.length)]); setUserText(''); setResult(null); }; useEffect(generate, [level]); const checkParaphrase = async () => { if (!userText.trim()) return; setLoading(true); // Client-side analysis first const origTokens = new Set(window.nlpAnalyzer.tokenize(original).filter(w => w.length > 3)); const userTokens = window.nlpAnalyzer.tokenize(userText).filter(w => w.length > 3); const overlap = userTokens.filter(w => origTokens.has(w)); const overlapRatio = userTokens.length > 0 ? overlap.length / userTokens.length : 0; const lexicalChange = 1 - overlapRatio; const origLex = window.nlpAnalyzer.lexicalAnalysis(original); const userLex = window.nlpAnalyzer.lexicalAnalysis(userText); // Length check const lengthRatio = userTokens.length / (origTokens.size || 1); const tooShort = lengthRatio < 0.5; const tooLong = lengthRatio > 2; let clientScore = { lexicalChange: Math.round(lexicalChange * 100), sharedWords: overlap, originalComplexity: origLex.guiraud, userComplexity: userLex.guiraud, lengthOk: !tooShort && !tooLong, }; // Backend AI scoring (if available) let aiResult = null; if (hasBackend) { try { aiResult = await window.apiClient.call('/api/ai/paraphrase-check', { method: 'POST', body: { original, paraphrase: userText }, }); } catch (e) { console.warn('AI paraphrase check failed:', e.message); } } const isGood = (aiResult?.data?.quality === 'good' || aiResult?.data?.quality === 'excellent') || (!aiResult && lexicalChange >= 0.5 && !tooShort && !tooLong); setResult({ client: clientScore, ai: aiResult?.data || null, isGood, }); setStats(s => ({ attempts: s.attempts + 1, good: s.good + (isGood ? 1 : 0) })); setLoading(false); }; const accuracy = stats.attempts > 0 ? Math.round(stats.good / stats.attempts * 100) : 0; return (
Paraphrasing · Essential IELTS skill

Rewrite the sentence.

Keep the same meaning but change the words and structure. This skill is tested in Reading, Writing, and Listening.

{['beginner', 'intermediate', 'advanced'].map(l => ( ))}
{stats.attempts} attempts {stats.good} good paraphrases {accuracy}%
{/* Original sentence */} {original && (
Original sentence
"{original}"
)} {/* User input */}