Editing
Philosophy Of Language
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Applying</span> == '''Implementing Gricean implicature detection:''' <syntaxhighlight lang="python"> from dataclasses import dataclass, field from typing import Optional @dataclass class Utterance: """Represents a linguistic utterance with its context.""" literal_content: str speaker_context: dict = field(default_factory=dict) conversational_context: list[str] = field(default_factory=list) class GriceanAnalyzer: """ Analyze utterances for Gricean implicatures. Based on Grice's maxims: Quantity, Quality, Relation, Manner. """ MAXIMS = { 'quantity': 'Make your contribution as informative as required (but not more so)', 'quality': 'Do not say what you believe to be false or lack evidence for', 'relation': 'Be relevant', 'manner': 'Avoid obscurity, ambiguity; be brief and orderly' } @staticmethod def analyze(utterance: Utterance, question_under_discussion: str) -> dict: return { 'literal': utterance.literal_content, 'question_under_discussion': question_under_discussion, 'implicature_source': 'Relevance maxim violation or scalar implicature', 'derived_implicature': GriceanAnalyzer._derive_implicature(utterance, question_under_discussion) } @staticmethod def _derive_implicature(utterance: Utterance, qud: str) -> str: # Scalar implicature: "some" implicates "not all" if 'some' in utterance.literal_content: return f"Not all [scalar implicature: 'some' on scale <some, many, most, all>]" # Relevance implicature: indirect answers if utterance.literal_content.endswith('?'): return "Genuine question, no implicature" # Common indirect speech act if utterance.literal_content.startswith("Can you"): return f"Request: please do [action]" return "No clear implicature β literal reading" # Classic examples examples = [ (Utterance("Some students passed the exam"), "Did all students pass?"), (Utterance("Can you pass the salt?"), "I need the salt"), (Utterance("It's getting cold in here"), "I am comfortable/warm"), (Utterance("John has three children"), "Does John have exactly three?"), ] for utterance, qud in examples: result = GriceanAnalyzer.analyze(utterance, qud) print(f"\nUtterance: '{result['literal']}'") print(f"QUD: '{result['question_under_discussion']}'") print(f"Implicature: {result['derived_implicature']}") # Kripke's causal-historical reference: simulating name grounding class CausalChainReference: """ Model Kripke's causal-historical theory of reference. A name refers to the object it was first attached to through a chain of uses. """ def __init__(self): self.chains: dict[str, dict] = {} def baptize(self, name: str, object_id: str, context: str): """Initial baptism establishes reference.""" self.chains[name] = {'original_referent': object_id, 'context': context, 'links': [context]} def transmit(self, name: str, new_speaker: str): """Transmission through the causal chain β reference preserved.""" if name in self.chains: self.chains[name]['links'].append(new_speaker) def what_does_it_refer_to(self, name: str) -> str: """The name rigidly refers back to the original baptized object.""" if name in self.chains: return f"'{name}' rigidly refers to: {self.chains[name]['original_referent']} " \ f"(grounded at: {self.chains[name]['context']})" return f"'{name}' has no established reference" ref_model = CausalChainReference() ref_model.baptize("Aristotle", "the_philosopher_born_384BCE", "Stagira, 384 BCE") ref_model.transmit("Aristotle", "Theophrastus (pupil)") ref_model.transmit("Aristotle", "medieval scholars") ref_model.transmit("Aristotle", "modern philosophers") print(ref_model.what_does_it_refer_to("Aristotle")) # Even though we associate many descriptions with "Aristotle", the name refers # to the specific individual at the end of the causal chain </syntaxhighlight> ; Key texts and thinkers : '''Sense and reference''' β Frege ("On Sense and Reference", 1892) : '''Description theory''' β Bertrand Russell ("On Denoting", 1905; ''Introduction to Mathematical Philosophy'') : '''Naming and Necessity''' β Saul Kripke (1980) β rigid designators, necessary a posteriori : '''Meaning as use''' β Wittgenstein (''Philosophical Investigations'', 1953) : '''Speech act theory''' β J.L. Austin (''How to Do Things with Words''), Searle (''Speech Acts'') : '''Implicature''' β H.P. Grice ("Logic and Conversation", 1975) : '''Natural Kind Terms''' β Hilary Putnam ("The Meaning of 'Meaning'", 1975) β "meanings ain't in the head" </div> <div style="background-color: #8B4500; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information