Wilson's interval when every score is 0 or 1 (right or wrong), Student's t otherwise, exactly as FunctAI computes it in every language.
Examples
score_interval(c(1, 1, 0, 1))
#> $mean
#> [1] 0.75
#>
#> $low
#> [1] 0.3006418
#>
#> $high
#> [1] 0.9544127
#>