WICG / translation-api

A proposal for translator and language detector APIs
Other
98 stars 3 forks source link

canXYZ() naming maybe implies boolean return values #19

Open domenic opened 2 weeks ago

domenic commented 2 weeks ago

In addition to the discussions in #7 and #12 about these methods, a simpler problem is that most people expect that a method starting with "can" to return a boolean value.

Maybe if we went in the direction of #7, "can" would still be an OK prefix. But probably we should pick something different, e.g. languageAvailable() / languagePairAvailable().