Documentation

Linglib.Core.Interfaces.ScopeTheory

Scope Theory #

Abstract interface for theories that determine available scope readings.

A scope reading: an ordering of scope-taking elements.

  • ordering : List String

    Identifiers for scope-taking elements, in scope order (widest first)

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

        The surface scope reading (linear order = scope order)

        Equations
        Instances For

          Reverse (inverse) scope reading

          Equations
          Instances For

            The set of available scope readings for a form.

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

                Singleton: only one reading available

                Equations
                Instances For

                  Binary: exactly two readings (surface and inverse)

                  Equations
                  Instances For

                    Check if a specific reading is available

                    Equations
                    Instances For

                      Is the scope ambiguous (more than one reading)?

                      Equations
                      Instances For

                        Typeclass for theories that determine available scope readings.

                        • availableScopes : FormAvailableScopes

                          Determine available scope readings for a form

                        Instances

                          Convenience function to get available scopes

                          Equations
                          Instances For

                            A ranked preference over scope readings.

                            Instances For
                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                class ScopeTheory.HasScopePreference (T Form Context : Type) :

                                Typeclass for theories that rank scope readings.

                                Instances

                                  Specialized interface for binary scope ambiguity.

                                  • form : α

                                    The form/derivation

                                  • scopeTaker1 : String

                                    First scope-taker (surface-wide)

                                  • scopeTaker2 : String

                                    Second scope-taker (surface-narrow)

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

                                      Binary scope availability: surface only, inverse only, or both.

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

                                          Typeclass for binary scope theories.

                                          Instances