Documentation

Linglib.Core.Interfaces.ImplicatureTheory

Implicature Theory #

Abstract interface for scalar implicature predictions.

The possible implicature outcomes for a scalar position.

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      A theory that makes predictions about scalar implicatures.

      • Structure : Type

        The theory's internal representation of an utterance in context

      • parse : List WordOption (Structure T)

        Parse words into the theory's representation. Returns none if the theory can't parse this input.

      • implicatureStatus : Structure TNatImplicatureStatus

        Predict the implicature status for a scalar position.

        Position indexes into the word list:

        • "some students sleep" → position 0 = some (scalar item)

        Returns the theory's prediction about whether an implicature arises.

      • implicatureStrength : Structure TNatOption Nat

        Optional: strength/probability (0-100 scale).

        NeoGricean: baseline rate (e.g., 35% for contextualism) RSA: L1 probability converted to percentage

        Returns none if the theory doesn't provide quantitative predictions.

      • predictsDEBlocking : Bool

        Does the theory predict implicature blocked in downward-entailing contexts?

      • predictsTaskEffect : Bool

        Does the theory predict a task effect (asking about SI raises rate)?

      • predictedBaselineRate : Nat

        Predicted baseline implicature rate (%) in neutral contexts

      Instances

        Check if implicature is derived at position pos

        Equations
        Instances For

          Check if implicature is blocked at position pos

          Equations
          Instances For

            Check if implicature is possible (but not required) at position pos

            Equations
            Instances For

              Check if any implicature arises (triggered or possible) at position pos

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                Two theories agree on a sentence at a position if they make the same status prediction

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For

                  Two theories agree on whether an implicature is derived

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def Interfaces.rateMatchesData (predictedRate observedRate : Nat) (tolerance : Nat := 5) :

                    Compare a theory's predicted rate to empirical data.

                    Equations
                    Instances For

                      Which theory's baseline is closer to observed data?

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For

                        Coverage status for a phenomenon.

                        Instances For
                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For

                            Pragmatic phenomena that theories might cover

                            Instances For
                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For

                                Coverage report for a single phenomenon

                                Instances For
                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For

                                    Full coverage report for a theory

                                    Instances For
                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For

                                        Count phenomena by status

                                        Equations
                                        Instances For

                                          List incomplete phenomena

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For

                                            List out-of-scope phenomena

                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For

                                              Summary of what a theory covers vs what's incomplete.

                                              • derivesBasicSI : Bool

                                                Does it derive basic SIs?

                                              • modelsDEBlocking : Bool

                                                Does it model DE blocking?

                                              • modelsTaskEffect : Bool

                                                Does it model task effects?

                                              • hasBaselineRate : Bool

                                                Is baseline rate specified?

                                              • incompleteNotes : List String

                                                Notes about incompleteness

                                              Instances For
                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For

                                                  Generate coverage summary for a theory

                                                  Equations
                                                  • One or more equations did not get rendered due to their size.
                                                  Instances For

                                                    A DE blocking test case derived from empirical data.

                                                    • ueDescription : String

                                                      Description of the UE example

                                                    • deDescription : String

                                                      Description of the DE example

                                                    • scalarTerm : String

                                                      The scalar term

                                                    • expectedUE : Bool

                                                      Expected: implicature arises in UE

                                                    • expectedDE : Bool

                                                      Expected: implicature blocked in DE

                                                    Instances For
                                                      Equations
                                                      • One or more equations did not get rendered due to their size.
                                                      Instances For

                                                        A task effect test case from @cite{geurts-pouscoulous-2009}

                                                        • inferenceRate : Nat

                                                          Inference task rate (percentage)

                                                        • verificationRate : Nat

                                                          Verification task rate (percentage)

                                                        • significant : Bool

                                                          Is the difference significant?

                                                        Instances For
                                                          Equations
                                                          • One or more equations did not get rendered due to their size.
                                                          Instances For

                                                            Result of testing a theory against DE blocking data

                                                            • theoryPredictsDEBlocking : Bool

                                                              Does the theory predict DE blocking?

                                                            • datashowsDEBlocking : Bool

                                                              Does the data show DE blocking?

                                                            • isMatch : Bool

                                                              Do they match?

                                                            Instances For
                                                              Equations
                                                              • One or more equations did not get rendered due to their size.
                                                              Instances For

                                                                Test a theory against a DE blocking test case

                                                                Equations
                                                                • One or more equations did not get rendered due to their size.
                                                                Instances For

                                                                  Result of testing a theory against task effect data

                                                                  • theoryPredictsTaskEffect : Bool

                                                                    Does the theory predict task effect?

                                                                  • dataShowsTaskEffect : Bool

                                                                    Does the data show task effect?

                                                                  • predictedRate : Nat

                                                                    Theory's predicted baseline rate

                                                                  • observedRate : Nat

                                                                    Observed rate (verification task)

                                                                  • rateDifference : Nat

                                                                    Difference between predicted and observed

                                                                  • isMatch : Bool

                                                                    Does theory match data?

                                                                  Instances For
                                                                    Equations
                                                                    • One or more equations did not get rendered due to their size.
                                                                    Instances For

                                                                      Test a theory against task effect data

                                                                      Equations
                                                                      • One or more equations did not get rendered due to their size.
                                                                      Instances For

                                                                        A theory captures DE blocking data if its prediction isMatch the pattern.

                                                                        Instances

                                                                          A theory captures task effect data if its predictions match the observations

                                                                          Instances

                                                                            Compare a theory's baseline rate to observed data.

                                                                            Equations
                                                                            • One or more equations did not get rendered due to their size.
                                                                            Instances For

                                                                              Which of two theories is closer to observed rate?

                                                                              Equations
                                                                              • One or more equations did not get rendered due to their size.
                                                                              Instances For