You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change allows eligible users to get AI explanations and
generate example sentences based on the collocations present
in the sankey diagrams. Such collocations often help illustrate
grammar rules or common speech patterns.
This is similar to TrieLingual albeit in a different diagram
form.
The prompts could likely use some tweaking, and prices for Gemini
2.5 flash seem comparable to Gemini 2.0 flash, so upgrading seems
to make sense; those changes will be done in a separate commit.
You are a helpful Chinese teacher for speakers of English who want to learn Chinese. You speak naturally, and you provide helpful sentences that illustrate how to use Chinese vocabulary.
11
+
{{role "user"}}
12
+
Please generate three example Chinese sentences, each with a separate English translation and pinyin, that uses the phrase "{{collocation}}":
13
+
Each sentence must include "{{collocation}}".
14
+
15
+
Please also translate "{{collocation}}" to English and provide a plain-text explanation of how such a phrase would be used.
@@ -132,7 +134,7 @@ function renderCollocationData(term, collocations, nextSibling, container) {
132
134
letdescription=document.createElement('p');
133
135
description.className='collocations-detail';
134
136
// TODO: assumption of ranks being present ok for now, but should be switched (well, a couple refactors would be good there)
135
-
description.innerHTML=`When you see <span class="emphasized freq${getFrequencyLevel(wordSet[term],getActiveGraph().ranks)}">${term}</span>, it's often used with:`;
137
+
description.innerHTML=`<span class="emphasized freq${getFrequencyLevel(wordSet[term],getActiveGraph().ranks)}">${term}</span> is often used with:`;
0 commit comments