@@ -2003,10 +2003,25 @@ <h3>Algorithm</h3>
20032003
20042004 < ol >
20052005 < li > Initialize < var > result</ var > to an empty < a class ="changed "> map</ a > .</ li >
2006- < li > Initialize < var > default language</ var > to < code > @none</ code > .
2006+ < li >
2007+ < div id ="change_pr639 " class ="candidate correction ">
2008+ < span class ="marker "> Candidate Correction 8</ span >
2009+ < p > Simplify the algorithm by handling the < a > default base direction</ a >
2010+ once and for all in this step, rather than in each iteration at the end of the next step.
2011+ For more information, refer to < a href ="https://github.com/w3c/json-ld-api/issues/633 "> issue 633</ a > .
2012+ </ p >
2013+ </ div >
2014+
2015+ Initialize < var > default language</ var > to < code > @none</ code > .
20072016 If the < var > active context</ var > has a < a > default language</ a > ,
20082017 set < var > default language</ var > to the < a > default language</ a > from the < var > active context</ var >
2009- < span class ="changed "> normalized to lower case</ span > .</ li >
2018+ < span class ="changed "> normalized to lower case</ span > .
2019+ < ins cite ="#change_pr639 ">
2020+ If the < var > active context</ var > has a < a > default base direction</ a > ,
2021+ concatenate its value to < var > default language</ var > ,
2022+ separated by an underscore (`"_"`).
2023+ </ ins >
2024+ </ li >
20102025 < li > For each key < a > term</ a > and value < a > term definition</ a > in
20112026 the < var > active context</ var > , ordered by shortest < a > term</ a >
20122027 first (breaking ties by choosing the lexicographically least
@@ -2117,6 +2132,7 @@ <h3>Algorithm</h3>
21172132 being processed.</ li >
21182133 </ ol >
21192134 </ li >
2135+ < del cite ="#change_pr639 ">
21202136 < li class ="changed "> Otherwise, if < var > active context</ var > has a
21212137 < a > default base direction</ a > :
21222138 < ol >
@@ -2135,10 +2151,12 @@ <h3>Algorithm</h3>
21352151 being processed.</ li >
21362152 </ ol >
21372153 </ li >
2154+ </ del >
21382155 < li > Otherwise:
21392156 < ol >
2140- < li > If < var > language map</ var > does not have a < var > default language</ var > < a > entry</ a >
2157+ < li > If < var > language map</ var > does not have a < var > default language</ var > < a > entry</ a > , < del cite =" #change_pr639 " >
21412158 < span class ="changed "> (after being normalized to lower case)</ span > ,
2159+ </ del >
21422160 create one and set its value to the < a > term</ a >
21432161 being processed.</ li >
21442162 < li > If < var > language map</ var > does not have an < code > @none</ code >
@@ -7103,6 +7121,8 @@ <h2>Change log</h2>
71037121 as described in < a href ="#change_7 "> Candidate Correction 7</ a > </ li >
71047122 < li > 2025-02-28: Clarifiy language about < a > term definitions</ a > ,
71057123 as described in < a href ="#change_api_638 "> Candidate Correction 8</ a > </ li >
7124+ < li > 2025-02-28: Simplify the < a href ="#algorithm-1 "> Inverse Context Creation algorithm</ a >
7125+ as described in < a href ="#change_pr639 "> Candidate Correction 8</ a > </ li >
71067126 </ ul >
71077127 </ details >
71087128
0 commit comments